class CMyDAODemoView : public CListView
BOOL CMyDAODemoView::PreCreateWindow(CREATESTRUCT& cs)
{
// TODO: Modify the Window class or styles here by modifying
// the CREATESTRUCT cs
cs.style |= LVS_REPORT;
return CListView::PreCreateWindow(cs);
}
void CMyDAODemoView::EraseList()
{
CListCtrl& ctlList = (CListCtrl&) GetListCtrl();
ctlList.DeleteAllItems();
while(ctlList.DeleteColumn(0));
UpdateWindow();
}
继承CListView类的cs.style设置LVS_REPORT
最新推荐文章于 2020-05-28 18:05:29 发布