Find the focused item in ListCtrl
-
Dear all, What is the fastest way to locate the focused item in CListCtrl object? BRs
-
Dear all, What is the fastest way to locate the focused item in CListCtrl object? BRs
GetSelectionMark(). Tom Wright tawright915@yahoo.com
-
GetSelectionMark(). Tom Wright tawright915@yahoo.com
Thanks Tom, While waiting for your replies, I found a solution. That is GetNextItem(-1, LVIS_FOCUSED) Thanks anyway. BRs
-
Thanks Tom, While waiting for your replies, I found a solution. That is GetNextItem(-1, LVIS_FOCUSED) Thanks anyway. BRs
Just wandering why the CListCtrl::GetFirstSelectedItemPosition() is not good enough ?
-
Just wandering why the CListCtrl::GetFirstSelectedItemPosition() is not good enough ?
Because I wanted to find the focused item, not selected item. By using GetNextItem(), I can directly locate the focused item and that's what I needed. BRs