Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Wait for keyboard input in MFC Dialog Application?

Status
Not open for further replies.

Insider1984

Technical User
Feb 15, 2002
132
US
Okay I have a simply dialog application that launches a display window from another companies library. What I want to do is allow the person to view the image and select "good" or "bad" by hitting "g" or "b" on the keyboard while they are looking at the image.

I'm just not familiiar with how to read in from the keyboard.

=====================
Insider
4 year 'on the fly' programmer
C++ Basic Java
 
Is that the only form of input or can they click on a button as well?

If that is the only form of input, in your winproc (the routine that handles all messages for your dialog), put in a case for WM_CHAR and check for 'g' or 'b' accordingly.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top