Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Capturing F7 keypressed on modal dialogs

Posted on 1998-07-16
2
Medium Priority
?
271 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 200 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: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say 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

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…
Introduction: Dialogs (2) modeless dialog and a worker thread.  Handling data shared between threads.  Recursive functions. Continuing from the tenth article about sudoku.   Last article we worked with a modal dialog to help maintain informat…
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 lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …

877 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