Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Keypad vs Number Keys
Message
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00316951
Message ID:
00316999
Views:
21
>>The WinAPI vkcode for the number keys and keypad is different. Number keys are 48-57. Anybody know the keypad codes?
>
>Hi Joe,
>
>The virtual keycodes are found in winuser.h. For the keypad they are:
#define VK_NUMPAD0        0x60
>#define VK_NUMPAD1        0x61
>#define VK_NUMPAD2        0x62
>#define VK_NUMPAD3        0x63
>#define VK_NUMPAD4        0x64
>#define VK_NUMPAD5        0x65
>#define VK_NUMPAD6        0x66
>#define VK_NUMPAD7        0x67
>#define VK_NUMPAD8        0x68
>#define VK_NUMPAD9        0x69
>#define VK_MULTIPLY       0x6A
>#define VK_ADD            0x6B
>#define VK_SEPARATOR      0x6C
>#define VK_SUBTRACT       0x6D
>#define VK_DECIMAL        0x6E
>#define VK_DIVIDE         0x6F
hth,


PERFECT! Now where can I find winuser.h ?

Thanks again.

ps: The responsiveness of this forum never ceases to amaze me.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform