CListCtrl not created in CFormView
C / C++ / MFC
1
Posts
1
Posters
0
Views
1
Watching
-
I made a DIALOG resource for my CFOrmView derived class... I put a CListCtrl in the DIALOG, and made a variable for it, i.e. m_myListControl.. Now when i Tried inserting columns using InsertColumn(), the VC++ ASSERTS... Upon tracing,debugging, It turns out that m_myListControl doesn't created, its handle=0x000.. I tried to make a DIALOG resource with a CListCtrl this time for a CDialog, just to test and see if it will work on a CDialog... it works on a CDialog, and it turns out, the ClistCtrl object is created this time, there's is a value of the handle of the CListCtrl.. Any thoughts on this?