Solved

Capturing F7 keypressed on modal dialogs

Posted on 1998-07-16
2
258 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
How to calculate times for developing software? 8 65
repeatEnd java challenge 42 84
Shell script to login to remote m/c and execute commands 10 78
mapAB Challlenge 35 123
Introduction: Displaying information on the statusbar.   Continuing from the third article about sudoku.   Open the project in visual studio. Status bar – let’s display the timestamp there.  We need to get the timestamp from the document s…
If you use Adobe Reader X it is possible you can't open OLE PDF documents in the standard. The reason is the 'save box mode' in adobe reader X. Many people think the protected Mode of adobe reader x is only to stop the write access. But this fe…
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.
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

932 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now