ionutdinulescu
Programmer
I have a CListCtrl control and a text box on a dialog. When I click on an item in the list, I display a corresponding message in the text box.
Now I would like to do the same when I press arrow and page down/up keys.
I'm currently using LVN_KEYDOWN message. The problem is that when I go from item no 0 to item no 1, the selected index change is not seen by the LVN_KEYDOWN (so in the message handler, the selected item will be 0 instead of 1). Another problem is that LVN_KEYDOWN message doesn't tell me what key I have pressed.
Do you guys know a workaround for this ?
Now I would like to do the same when I press arrow and page down/up keys.
I'm currently using LVN_KEYDOWN message. The problem is that when I go from item no 0 to item no 1, the selected index change is not seen by the LVN_KEYDOWN (so in the message handler, the selected item will be 0 instead of 1). Another problem is that LVN_KEYDOWN message doesn't tell me what key I have pressed.
Do you guys know a workaround for this ?