I dont know why WM_CHAR is not processing the key VK_DELETE it process VK_RETURN and VK_BACK and i need VK_DELETE. I need WM_CHAR so i will not use WM_KEYDOWN or its the ultimate solution?
Ateneo,
First of all, WM_CHAR only processes ASCII character messages. If you want to non-ASCII character messages, process the keystroke messages WM_KEYDOWN, WM_KEYUP, WM_SYSKEYDOWN, WM_SYSKEYUP. The keyboard keys SHIFT, DELETE, PAGE UP, PAGE DOWN, F1-F12, etc do NOT generate a WM_CHAR message. Use the program in the enclosed zip file to see what the keyboard keys generate. Ratch
First of all, WM_CHAR only processes ASCII character messages. If you want to non-ASCII character messages, process the keystroke messages WM_KEYDOWN, WM_KEYUP, WM_SYSKEYDOWN, WM_SYSKEYUP. The keyboard keys SHIFT, DELETE, PAGE UP, PAGE DOWN, F1-F12, etc do NOT generate a WM_CHAR message. Use the program in the enclosed zip file to see what the keyboard keys generate. Ratch
Thats a handy little tool there Ratch, thanks for sharing :alright:
:NaN:
:NaN:
Nan,
That tool is found in Programming Windows, 5th edition by Charles Petzold. I transcribed it from C to MASM, but the basic idea was his. Ratch
That tool is found in Programming Windows, 5th edition by Charles Petzold. I transcribed it from C to MASM, but the basic idea was his. Ratch
Yes i will use WM_KEYDOWN.
By the way the program you "sent" me throw me a bad read memory error :)
By the way the program you "sent" me throw me a bad read memory error :)