I have a CListCtrl drived class CListCtrlEx, it is created from resource
but I want to disregard
(give assertions first) of its styles
and set a new one on its creation.
for this I have a hanler for WM_CREATE
int CListCtrlEx::OnCreate(LPCREATESTRUCT lpCreateStruct)
lpCreateStruct->style = LVS_SHOWSELALWAYS | LVS_NOSORTHEADER | WS_BORDER | WS_TABSTOP;
if (CListCtrl::OnCreate(lpCreateStruct) == -1)
and I have a dialog app, with
CListCtrl resource on it.
I know that m_ctrListEx is created
but it newer goes to my OnCreate
handler ???? why ??? and is this the place I should put my assertions and set the new style. I also tried
overrides create, and precreate
non of them seemed visited ????