Mike Parrish
July 7th, 1999, 01:13 PM
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.
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.