ASCII Codes question 
Author Message
 ASCII Codes question

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,




Sat, 16 Oct 1999 03:00:00 GMT  
 ASCII Codes question

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,





Sat, 16 Oct 1999 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. converting from ascii code to character code

2. How to get ASCII code in C#?

3. covert signed integer to ascii code

4. ASCII Code and its Hex Value in C#

5. ascii/uni code chars in unix (sun 5.5.1)

6. code for Converting from BCD to ascii

7. ASCII codes?

8. SEEKING: ASCII Blackjack source code

9. ascii codes

10. ASCII code

11. How to trap arrow keys Ascii code?

12. Post-ASCII Coding

 

 
Powered by phpBB® Forum Software