CListCtrl Oddity
-
'ello, I have a problem with a CListView derived class, it refuses to show the Header control when in report view. I've tried a few things including commenting out all except
GetListCtrl().MofifyStyle(LVS_TYPEMASK,LVS_REPORT); GetListCtrl().InsertColumn(0,"Test",LVCFMT_LEFT,100);
in OnInitalUpdate(). The app is a appwizard produced SDI app with the "Windows Explorer" option enabled" and has the Listview view options buttons on the toolbar, the selected mode shows as the Details mode when the app starts but the CHeaderCtrl() is never created ( GetListCtrl()->GetHeaderCtrl() returns NULL ). Another appwizard produced app with all the same modes works ok, anyone else as confused as me? :wtf: [EDIT] Never mInd i forgot to delete the defualt (empty) implmentation of OnStyleChanged [/EDIT] Richard Green