mmakrzem
11-03-2007, 04:17 PM
I'm using the WM_KEYDOWN message send to WinProc to do some work in my program, but I have noticed that when I press F10, focus is lost to my window. My program never gets a WM_KEYDOWN message. Instead it gives me a WM_SYSCOMMAND with wParam = SC_KEYMENU.
Is there anyway to disable this behaviour so that when I press F10, I instead get a WM_KEYDOWN message with VK_F10 being passed in as the wParam?
I also get strange behaviour when I press F12 on the keyboard. .... basically my program crashes.... not sure why yet. All other F keys work fine.
Another thing; anyone know why I'm getting wParam = VK_RETURN when I press the enter key on the number pad? I was thinking I should get VK_SEPARATOR.
The "Print Screen" button doesn't seem to work either .... I tried VK_SNAPSHOT and VK_PRINT but neither work.
Oh, and what is the deal with the left/right shift, ctrl and alt buttons. When I press them, I can't seem to differentiate between the left ones and the right ones.
Is there anyway to disable this behaviour so that when I press F10, I instead get a WM_KEYDOWN message with VK_F10 being passed in as the wParam?
I also get strange behaviour when I press F12 on the keyboard. .... basically my program crashes.... not sure why yet. All other F keys work fine.
Another thing; anyone know why I'm getting wParam = VK_RETURN when I press the enter key on the number pad? I was thinking I should get VK_SEPARATOR.
The "Print Screen" button doesn't seem to work either .... I tried VK_SNAPSHOT and VK_PRINT but neither work.
Oh, and what is the deal with the left/right shift, ctrl and alt buttons. When I press them, I can't seem to differentiate between the left ones and the right ones.