cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Windows Programming
How do you find when a user presses 'H'?
How do you find when a user presses 'H'?
Jan 11, 2016 at 10:38pm UTC
JoorDovah
(6)
I'm using Win32 and want it to create a MessageBox when a user presses 'H'. How do I do this?
Jan 11, 2016 at 11:11pm UTC
CoderJames
(6)
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)?
Jan 12, 2016 at 7:24pm UTC
freddie1
(1838)
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
Jan 12, 2016 at 7:26pm UTC
Topic archived. No new replies allowed.