Solved

Capturing F7 keypressed on modal dialogs

Posted on 1998-07-16
2
257 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
Comment Utility
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
Comment Utility
You are wonderfull!!!. Thanks a lot!!!
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Handling string inputs in C/Linux 23 167
centeredAverage challenge 8 119
canBalance challenge 34 64
changeXy challenge 13 56
Introduction: Ownerdraw of the grid button.  A singleton class implentation and usage. Continuing from the fifth article about sudoku.   Open the project in visual studio. Go to the class view – CGridButton should be visible as a class.  R…
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
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 video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

762 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

13 Experts available now in Live!

Get 1:1 Help Now