key codes in VC++
In VC++, what is the key codes for the backspace, enter and the numeral (1-9) keys? Since space is WM_SPACE, I thought enter for an example could be WM_ENTER... but nooooo.. :-)
Thanks!
March 03, 2000 02:49 PM
I don''t remember the name of the file that has all of that information, but if you do a find file search on your include directory, looking for WM_SPACE in all of the .h files, you should find it without much trouble.
To capture windows keypress messages, handle the WM_CHAR or WM_KEYDOWN messages. in these message handlers, the WParam holds the key code, I believe. (check the docco''s to make sure)
In the handler, test for VK_ENTER, VK_BACK_SPACE, and VK_NUMPAD0 ... VK_NUMPAD9, and take appropriate action.
*oof*
In the handler, test for VK_ENTER, VK_BACK_SPACE, and VK_NUMPAD0 ... VK_NUMPAD9, and take appropriate action.
*oof*
*oof*
March 03, 2000 04:10 PM
I thought that the vk code for the enter button was VK_RETURN maybe Im just tired
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement