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
Solved

WM_KEYDOWN handler

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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

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

Suggested Solutions

Introduction: Displaying information on the statusbar.   Continuing from the third article about sudoku.   Open the project in visual studio. Status bar – let’s display the timestamp there.  We need to get the timestamp from the document s…
Introduction: Dialogs (1) modal - maintaining the database. Continuing from the ninth article about sudoku.   You might have heard of modal and modeless dialogs.  Here with this Sudoku application will we use one of each type: a modal dialog …
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.

809 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