Software Archive
Read-only legacy content
17060 Discussions

Keyboard question

davidgraham
Beginner
240 Views
In my application, instead of accessing a command from a menu item or tool bar button, I just want to press one key - say "M" for the "Move" command.

I am doing this my checking WM_KEYUP but I find that not only am I getting the key I have just pressed, but after comimg out of a command, I find that I get the keys I pressed while in that command.
I think the solution is to flush the keyboard buffer. Is this correct and how do I do it?

Thanks,
David
0 Kudos
1 Reply
davidgraham
Beginner
240 Views
I now use an accelator table rather than WM_KEYUP - so the problem no longer exists.

Thanks,
David
0 Kudos
Reply