Hi all,
Can someone tell me how to select or highlight an item in a CListCtrl in run time? I want to make sure at least one item is highlighted at any time.
Wilson
Printable View
Hi all,
Can someone tell me how to select or highlight an item in a CListCtrl in run time? I want to make sure at least one item is highlighted at any time.
Wilson
Hi, use SetItemState:
pList->SetItemState(nItemIndex, LVIS_SELECTED, LVIS_SELECTED);
Thanks.
Wilson