Solved

WM_KEYDOWN handler

Posted on 1997-05-30
1
375 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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying 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: Database storage, where is the exe actually on the disc? Playing a game selected randomly (how to generate random numbers).  Error trapping with try..catch to help the code run even if something goes wrong. Continuing from the seve…
In this post we will learn different types of Android Layout and some basics of an Android App.
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.
In this video, viewers are given an introduction to using the Windows 10 Snipping Tool, how to quickly locate it when it's needed and also how make it always available with a single click of a mouse button, by pinning it to the Desktop Task Bar. Int…

729 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