BOOL CMyListView::PreCreateWindow(CREATESTRUCT& cs) { if( !CListView::PreCreateWindow(cs) ) return FALSE; // TODO: Modify the Window class or styles here by modifying // the CREATESTRUCT cs cs.style&=~LVS_TYPEMASK; cs.style|=~LVS_REPORT; return TRUE; }
我也是这样做的
没有问题
{
if( !CListView::PreCreateWindow(cs) )
return FALSE;
// TODO: Modify the Window class or styles here by modifying
// the CREATESTRUCT cs
cs.style&=~LVS_TYPEMASK;
cs.style|=~LVS_REPORT;
return TRUE;
}