I want to subclass the CListCtrl of a CListView to repond to mouse button clicks. In the OnInitialUpdate() of my CListView I tried but failed using
m_ctlMyListCtrl.SubclassDlgItem( GetListCtrl().GetDlgCtrlID(), this );
Printable View
I want to subclass the CListCtrl of a CListView to repond to mouse button clicks. In the OnInitialUpdate() of my CListView I tried but failed using
m_ctlMyListCtrl.SubclassDlgItem( GetListCtrl().GetDlgCtrlID(), this );
try SubclassWindow, like
CListCtrl* pList = (CListCtrl*)GetDlgItem (IDC_LIST_FIELDS);
if (!m_List.SubclassWindow (pList->m_hWnd))
return FALSE;