How to get the "Enter" Key down notification from CListCtrl
-
Hi, I want to get the "Enter" Key down notification from a ClistCtrl. I have handled the LVN_KEYDOWN but the parent window is not notified when "Enter" Key is pressed and the Parent window is notifies when all other keys are down. How can i get notified when "Enter" key is pressed. I tried using NM_ENTER but nothing happened. thanks Nitheesh
Jose Jo Martin http://www.simpletools.co.in
-
Hi, I want to get the "Enter" Key down notification from a ClistCtrl. I have handled the LVN_KEYDOWN but the parent window is not notified when "Enter" Key is pressed and the Parent window is notifies when all other keys are down. How can i get notified when "Enter" key is pressed. I tried using NM_ENTER but nothing happened. thanks Nitheesh
Jose Jo Martin http://www.simpletools.co.in
why don't you use spy++ tool to get the notification
-
why don't you use spy++ tool to get the notification
Hi , I want to handle the "Enter" key event on the parent window. Do u have an idea.
Jose Jo Martin http://www.simpletools.co.in
-
Hi, I want to get the "Enter" Key down notification from a ClistCtrl. I have handled the LVN_KEYDOWN but the parent window is not notified when "Enter" Key is pressed and the Parent window is notifies when all other keys are down. How can i get notified when "Enter" key is pressed. I tried using NM_ENTER but nothing happened. thanks Nitheesh
Jose Jo Martin http://www.simpletools.co.in
If your list is on a dialog box you can use this trick: In the OnOK handler of the dialog check if the focus is on your list control or not, if it is, then the user pressed the ENTER key in your list. Don't know if this aproach has any drawbacks or glitches in it.
> The problem with computers is that they do what you tell them to do and not what you want them to do. < > Life: great graphics, but the gameplay sux. <
-
If your list is on a dialog box you can use this trick: In the OnOK handler of the dialog check if the focus is on your list control or not, if it is, then the user pressed the ENTER key in your list. Don't know if this aproach has any drawbacks or glitches in it.
> The problem with computers is that they do what you tell them to do and not what you want them to do. < > Life: great graphics, but the gameplay sux. <
Hi, thanks for your reply. Unfortunately my Listview is in CFormView. So this trick is not going to work for me. Any other method other than subclassing the ClistCtrl?. thanks Nitheesh
Jose Jo Martin http://www.simpletools.co.in