Solved

WM_KEYDOWN handler

Posted on 1997-05-30
1
374 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

This is to be the first in a series of articles demonstrating the development of a complete windows based application using the MFC classes.  I’ll try to keep each article focused on one (or a couple) of the tasks that one may meet.   Introductio…
Introduction: The undo support, implementing a stack. Continuing from the eigth article about sudoku.   We need a mechanism to keep track of the digits entered so as to implement an undo mechanism.  This should be a ‘Last In First Out’ collec…
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.
Are you ready to implement Active Directory best practices without reading 300+ pages? You're in luck. In this webinar hosted by Skyport Systems, you gain insight into Microsoft's latest comprehensive guide, with tips on the best and easiest way…

749 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