By detecting WM_KEYDOWN I can get the key code but how do I get the ascii code that are mapped to them?
Printable View
By detecting WM_KEYDOWN I can get the key code but how do I get the ascii code that are mapped to them?
Can you use WM_CHAR in stead?
Since I am leaving now, just let me show a small example..:)
Code:case WM_CHAR:
{
int ascii_code = wparam; //The ascii code
int key_state = lparam; //What other special keys like Alt/Shift was pressed
// take whatever action
} break;
- ØØ -
thanks note :)
unfort can't rate your post yet :(
Pa probleme...happy it helped since I went on my vecation just a few minutes after I posted the reply...:)