CListCtrl question
C / C++ / MFC
2
Posts
2
Posters
0
Views
1
Watching
-
first if this is in twice i am sorry is there a way to programmatically select an item in a list control and highlight it. (my view = report) thank you.
// select item
ctrlList.SetItemState(nItem, LVIS_SELECTED, LVIS_SELECTED);
// set focus to item
ctrlList.SetItemState(nItem, LVIS_FOCUSED, LVIS_FOCUSED);
// select and set focus to item
ctrlList.SetItemState(nItem, LVIS_SELECTED | LVIS_FOCUSED, LVIS_SELECTED | LVIS_FOCUSED);farewell goodnight last one out turn out the lights
Smashing Pumpkins, Tales of a Scorched Earth