Click to See Complete Forum and Search --> : List View


May 6th, 1999, 02:08 PM
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 );

chiuyan
May 6th, 1999, 03:48 PM
try SubclassWindow, like

CListCtrl* pList = (CListCtrl*)GetDlgItem (IDC_LIST_FIELDS);
if (!m_List.SubclassWindow (pList->m_hWnd))
return FALSE;