|
-
July 7th, 1999, 01:13 PM
#1
CListBox
Hmmm.....
Something strange going on here.
I've created a ListBox in the resource editor in an existing CPropertyPage. When I use the Class Wizard to add a member variable, I add a CListBox control, called m_lbLog (standard creation flags). When I tried to add strings to the list box, I received an assert about it not being a valid m_hWnd. So, being the resourceful person I am, I called m_lbLog.Create() in OnInitDialog for the CpropertyPage and fill it with strings. The assert went away, but strings don't show up.
My question is twofold.
Should I have to call create if I create the CListBox from the Class Wizard?
And if so, what use are the flags in the Class Wizard when you place the control?
Thanks in advance.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|