Handling keyboard input in win32, WM_CHAR or WM_KEYDOWN/WM_KEYUP?

后端 未结 3 664
鱼传尺愫
鱼传尺愫 2021-01-30 23:07

So in the text editor program that i\'ve been working on, I\'ve used WM_CHAR to process input from the keyboard. However, I found that some of the character mesages are not reco

3条回答
  •  甜味超标
    2021-01-30 23:28

    Spy++ will show you the messages being sent to a window, so you can experiment and see what messages are appropriate for your application.

    If you have Visual Studio installed, it should be in your Start menu, under Programs -> Microsoft Visual Studio -> Visual Studio Tools -> Spy++.

    • WM_CHAR
    • WM_KEYDOWN

提交回复
热议问题