我用如下语句,运行出错:
c_listdetail.Create(LVS_REPORT | LVS_SHOWSELALWAYS | LVS_EDITLABELS,
CRect(210, 240, 320, 260),this,WM_USER+112);
c_listdetail.Create(LVS_REPORT | LVS_SHOWSELALWAYS | LVS_EDITLABELS,
CRect(210, 240, 320, 260),this,WM_USER+112);
对了你最好把这几个属性加入,不然也不能正常显示
extern CWnd* pParentWnd;
// The pointer to my list view control.
extern CListCtrl* pmyListCtrl;pmyListCtrl->Create(
WS_CHILD|WS_VISIBLE|WS_BORDER|LVS_REPORT,
CRect(10,10,400,200), pParentWnd, 1);