How to Select a row in CListCtrl at run time ??
-
Hi there, I'm trying to Select a row in a CListCtrl using the CListCtrl::SetSelectionMark(idxSel); and i'm calling this method in OnInitDialog() of a CPropertyPage. But this dosen't really worked for me !! I tried to Use UpdateData() and Invalidate() on the view to see if this will help but still no selection seen on the screen (although i do think there is something selected but not shown). Can somone help me with that ???? Thanks alot, Ariel.
-
Hi there, I'm trying to Select a row in a CListCtrl using the CListCtrl::SetSelectionMark(idxSel); and i'm calling this method in OnInitDialog() of a CPropertyPage. But this dosen't really worked for me !! I tried to Use UpdateData() and Invalidate() on the view to see if this will help but still no selection seen on the screen (although i do think there is something selected but not shown). Can somone help me with that ???? Thanks alot, Ariel.
Use
CListCtrl::SetItemState()
instead. --Mike-- http://home.inreach.com/mdunn/ The preferred snack of 4 out of 5 Lounge readers. -
Use
CListCtrl::SetItemState()
instead. --Mike-- http://home.inreach.com/mdunn/ The preferred snack of 4 out of 5 Lounge readers.