CListCtrl::InsertItem()的问题
我的一个class从CFormView继承的
,里面有一个CListCtrl的listcontrol,属性为LVS_REPORT,
当我InsertItem到这个listcontrol时候,程序就到
void CListCtrl::DrawItem(LPDRAWITEMSTRUCT)
{
ASSERT(FALSE);
}
的位置出错,
call stack为:
CListCtrl::DrawItem(tagDRAWITEMSTRUCT * 0x0012f548) line 547 + 28 bytes
CListCtrl::OnChildNotify(unsigned int 43, unsigned int 1001, long 1242440, long * 0x00000000) line 560
CWnd::SendChildNotifyLastMsg(long * 0x00000000) line 2683
CWnd::ReflectLastMsg(HWND__ * 0x001b0806, long * 0x00000000) line 2721
CWnd::OnDrawItem(int 1001, tagDRAWITEMSTRUCT * 0x0012f548) line 1156 + 14 bytes
CWnd::OnWndMsg(unsigned int 43, unsigned int 1001, long 1242440, long * 0x0012f3f0) line 1930
CWnd::WindowProc(unsigned int 43, unsigned int 1001, long 1242440) line 1585 + 30 bytes
AfxCallWndProc(CWnd * 0x004d3ed0 {CIndexListView hWnd=???}, HWND__ * 0x001c08e2, unsigned int 43, unsigned int 1001, long 1242440) line 215 + 26 bytes
AfxWndProc(HWND__ * 0x001c08e2, unsigned int 43, unsigned int 1001, long 1242440) line 368
AfxWndProcBase(HWND__ * 0x001c08e2, unsigned int 43, unsigned int 1001, long 1242440) line 220 + 21 bytes
USER32! 77e11ef0()
USER32! 77e13869()
USER32! 77e33ba1()
NTDLL! 77f9ff57()
USER32! 77e139e5()
COMCTL32! 717a1ab6()
COMCTL32! 7178a294()
fc658351()
当我改属性为LVS_SMALLICON或者LVS_LIST时候,就没有出错,
请兄弟们解释一下,谢谢。