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 bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Detecting Keybord Input

Status
Not open for further replies.

reneb

Programmer
Aug 8, 2000
43
US
How do I detect Keybord input. I created a normal dialog box and put a menu on it. I want the keybord to work as equivalents for the menu items. Example: Ctrl R for File -> Run etc. Thanks in advance.
 
Create accelerators as well as a menu. Can be done in the resource file. Marcel
 
I have created accelarators but they don't seem to work. I have used the same ID as the Menus but it still doesn't work. I just get a beep. Do you know what could be wrong. Thanks in advance.
 
Try catch typing on PreTranslateMessage() or OnChar() and verify Ctrl button state with GetKeyState().
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top