Solved

WM_KEYDOWN handler

Posted on 1997-05-30
1
353 Views
Last Modified: 2013-11-20
How do you catch the WM_KEYDOWN even in a CDialog.  I used class wizard and added the message map between WM_KEYDOWN and a function in my CDialog class.  The problem is that it simply does not execute. I can catch other messages like
WM_RBUTTONDOWN, but not WM_KEYDOWN.

The only time I can get the WM_KEYDOWN handler to execute is if is handled by the CView class.

There's got to be a way to catch a process keystrokes that
are entered when a CDialog has the keyboard focus.

Any ideas?
0
Comment
Question by:solomon021499
1 Comment
 
LVL 4

Accepted Solution

by:
mbhakta earned 100 total points
ID: 1301908
Check the MSJ issues a couple of months ago (say from March 96). There was an article explaining how to do keystrokes for CDialogs. Maybe that can help you. If you have trouble search contact me I will look into my archives.
0

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

Here is how to use MFC's automatic Radio Button handling in your dialog boxes and forms.  Beginner programmers usually start with a OnClick handler for each radio button and that's just not the right way to go.  MFC has a very cool system for handli‚Ķ
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.
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

706 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

22 Experts available now in Live!

Get 1:1 Help Now