![]() |
|
#1
|
|||
|
|||
problem using CListCtrlAs I'm a beginner in MFC I'm trying to develop a simple MFC application. I've prepared main application class, and tried to use CListCtrl. So I've used resource editor: added a dialog and a CListCtrl. Finaly I've bound m_listMain of type CListCtrl to the list using "right->add variable". And here comes the problem. Whenever i want use any method related to m_listMain (i.e. InsertItem, SetExtendedStyle) debug assertion comes up, saying that it failed on ASSERT(::IsWindow(m_hWnd)); Does anyone know any probable explanation? Am I missing something important(an initialization or what...)?
main.cpp CPP / C++ / C Code:
MainDialog.cpp CPP / C++ / C Code:
MainDialog.h CPP / C++ / C Code:
headers.h: just inclusion of afxwin.h and afxcmn.h |
|||
Recent GIDBlog
Vista ?Widgets? on Windows XP by LocalTech
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Apache Web Server newbie problem | niss3 | Apache Web Server Forum | 1 | 13-Apr-2009 18:38 |
| CListCtrl Problem | rag84dec | MS Visual C++ / MFC Forum | 0 | 28-Apr-2008 23:14 |
| Checkbox in CListCtrl problem | rag84dec | MS Visual C++ / MFC Forum | 0 | 29-Jan-2008 03:59 |
| MFC CListCtrl, problem selecting item | kte | MS Visual C++ / MFC Forum | 5 | 01-Feb-2005 11:15 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The