Solved

Capturing F7 keypressed on modal dialogs

Posted on 1998-07-16
2
264 Views
Last Modified: 2013-11-20
We need to capture the F7 key (or another F key) when the user is working with a modal dialog in order to execute the code associated with another dialog control.

0
Comment
Question by:scccrespo
2 Comments
 
LVL 7

Accepted Solution

by:
galkin earned 50 total points
ID: 1319328
If your dialog is MFC dialog you can trap this key by overriding PreTranslateMessage function and check when pMsg->message == WM_KEYDOWN && pMsg->wParam == VK_F7
0
 

Author Comment

by:scccrespo
ID: 1319329
You are wonderfull!!!. Thanks a lot!!!
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Show shut-down message as Windows 8 shuts down. 9 100
Windows Drag & Drop Location 2 108
Generic progress indicator 6 117
matchUp  challenge 6 69
Introduction: Load and Save to file, Document-View interaction inside the SDI. Continuing from the second article about sudoku.   Open the project in visual studio. From the class view select CSudokuDoc and double click to open the header …
Introduction: Finishing the grid – keyboard support for arrow keys to manoeuvre, entering the numbers.  The PreTranslateMessage function is to be used to intercept and respond to keyboard events. Continuing from the fourth article about sudoku. …
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

830 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question