Capturing F7 keypressed on modal dialogs

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.

scccrespoAsked:
Who is Participating?
 
galkinConnect With a Mentor Commented:
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
 
scccrespoAuthor Commented:
You are wonderfull!!!. Thanks a lot!!!
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.