Catching of selection changes in CListCtrl - how?
Posted on 1998-10-14
I need to catch the moment when the user selects an item of the CListCtrl (to change some other dialog's controls). In the old good list box there was the LBN_SELCHANGE notification. How do I get similar notification for CListCtrl?
I tried to process the LVN_ITEMCHANGED notification:
void MyDialog:::OnItemchanged( NMHDR* pNMHDR, LRESULT* pResult)
NM_LISTVIEW *lv = (NM_LISTVIEW FAR *) pNMHDR;
*pResult = 0;
if( !(lv->uChanged & LVIF_STATE) )
But the code never goes to the call to UpdateMyDialog when I select different items in the list.