Selecting a row with CListCtrl
-
Does anibody know if there's a similar function like CListBox::SetCurSel, in class CListCtrl? In a multiple column CListCtrl, is it possible to select the entire row instead of only the first column? Thanks!!!
- CListCtrl::SetItemState() 2) Yep, set the full row select extended style of the control.
-
- CListCtrl::SetItemState() 2) Yep, set the full row select extended style of the control.
-
Hi there, How do you select the "set the full row select extended style of the control" ?? Thanks in advanced, Ariel.
In MFC: yourListCtrl.SetExtendedStyle(LVS_EX_FULLROWSELECT|yourListCtrl.GetExtendedStyle()); In straight API: ListView_SetExtendedListViewStyleEx(hwndYourList, LVS_EX_FULLROWSELECT, LVS_EX_FULLROWSELECT); --Mike-- http://home.inreach.com/mdunn/ This must be Thursday. I never could get the hang of Thursdays...
-
In MFC: yourListCtrl.SetExtendedStyle(LVS_EX_FULLROWSELECT|yourListCtrl.GetExtendedStyle()); In straight API: ListView_SetExtendedListViewStyleEx(hwndYourList, LVS_EX_FULLROWSELECT, LVS_EX_FULLROWSELECT); --Mike-- http://home.inreach.com/mdunn/ This must be Thursday. I never could get the hang of Thursdays...