HWND problem with ListControl
-
Hi; I am building an SDI application which requires a list control found on Tabs of a DialogBar. I managed to initialise the list control to some value. However, users of the tool are required to log-in and the list control is supposed to fill dynamically according to their log. I tried some piece of code to get it done but i got an ENORMOUS assertion error. This is what i get when i move to debug mode: _AFXCMN_INLINE int CListCtrl::InsertColumn(int nCol, const LVCOLUMN* pColumn) { ASSERT(::IsWindow(m_hWnd)); return (int) ::SendMessage(m_hWnd, LVM_INSERTCOLUMN, nCol, (LPARAM)pColumn); } Can someone please help me to understand what this means and possibly how to overcome it. I badly need this. Thank you; Krugger
-
Hi; I am building an SDI application which requires a list control found on Tabs of a DialogBar. I managed to initialise the list control to some value. However, users of the tool are required to log-in and the list control is supposed to fill dynamically according to their log. I tried some piece of code to get it done but i got an ENORMOUS assertion error. This is what i get when i move to debug mode: _AFXCMN_INLINE int CListCtrl::InsertColumn(int nCol, const LVCOLUMN* pColumn) { ASSERT(::IsWindow(m_hWnd)); return (int) ::SendMessage(m_hWnd, LVM_INSERTCOLUMN, nCol, (LPARAM)pColumn); } Can someone please help me to understand what this means and possibly how to overcome it. I badly need this. Thank you; Krugger
It simplely means that the listcontrol was not created.. are you trying to insert something out of the scopeof the listcontrol variable or out of the dialog ???
MSN Messenger. prakashnadar@msn.com "If history isn't good, just burn it." - Sidhuism.