How to get index for selcted item in CListCtrl using arrow key
Posted on 2002-05-07
I hvae currently implemented a list control that displays a textual description for each item when it is clicked by the mouse.
I would like this description to also be displayed when an item is selected using the arraow keys.
I have tried the following but this doesn't seem to work.
int nCurSel = m_ExceptionListCtrl.GetNextItem(-1 , LVNI_FOCUSED | LVNI_SELECTED);
It always seems to hold the previous one that was selected and so the descriptions are wrong.
Any help would be greatly appreciated.