Jloc,
Look for the symbols beginning with VK_ in winuser.h. These symbols
define virtual key codes passed in WM_KEYDOWN and WM_KEYUP messages.
These codes are usually translated to character codes by
TranslateMessage and passed in WM_CHAR messages by the current message
loop. There are several related messages depending on whether the
characters are defined as system or user characters, etc. Check the
documentation for more details.
Ron Martin
Ann ARbor, MI
Quote:
> I am writing a program and I want to place code in the KeyPress message of
> a dialog box to recognize when the arrows are pressed. What are the codes
> used to recognize the presses of these buttons? Also, where can I find a
> chart listing the codes for all key presses?
> Thanks,