listCtrl - selection
-
Hi, I have a position within a listCtrlView POSITION pos = listCtrl.GetFirstSelectedItemPosition(); and want to select thr row 'pos - 1'. Is there any command to do this? Thanks, Gerhard
ensger wrote:
listCtrl.GetFirstSelectedItemPosition();
I think the CListCtrl::GetNextItem() is more easy to use than the GetFirstSelectedItemPosition function. Cause it reurns the index of item
ensger wrote:
and want to select thr row 'pos - 1'. Is there any command to do this?
you can use CListCtrl::SetItemState() to make the previous item selected.
nave
-
Hi, I have a position within a listCtrlView POSITION pos = listCtrl.GetFirstSelectedItemPosition(); and want to select thr row 'pos - 1'. Is there any command to do this? Thanks, Gerhard
Gerhard wrote:
Is there any command to do this?
Go Through
SetItemState
andSetSelectionMark
API's of the ListCtrl. Knock out 't' from can't, You can if you think you can :cool: