Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

WM_KEYDOWN handler

Posted on 1997-05-30
1
Medium Priority
?
379 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 300 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: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering 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: Load and Save to file, Document-View interaction inside the SDI. Continuing from the second article about sudoku.   Open the project in visual studio. From the class view select CSudokuDoc and double click to open the header …
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…
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, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…

610 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