How do you find when a user presses 'H'?

I'm using Win32 and want it to create a MessageBox when a user presses 'H'. How do I do this?
Where is the input coming from? Command line? Form element? Or do you want a message box to display whenever a user presses H in any application (bad idea btw)?
You need to handle WM_CHAR messages in your Window Procedure. The character code will come through in the WPARAM parameter, and you can test for that.
Last edited on
Topic archived. No new replies allowed.