?
Solved

How do I use CDialog::PreTranslateMessage()?

Posted on 1997-06-13
3
Medium Priority
?
565 Views
Last Modified: 2013-12-16
Who can I get my dialog (derived from CDialog) to respond to the PreTranslateMessage.  I can do it with no problems in 32-bit, but in 16-bit, the same function never gets called.
I'm trying to use this to capture the keyboard input before it gets to an edit box (which has the focus).
0
Comment
Question by:postrowski
[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
3 Comments
 

Expert Comment

by:remco070397
ID: 1775691
Perhaps you should try reposting your question in one of the programming pages? This is not really a Windows setup problem.
0
 

Author Comment

by:postrowski
ID: 1775692
Yes, I thought that I was posting this to the windows 3.x programming, however, it would seem that windows 3.x programing and windows 3.x setup are routed to the same place, so here I am stuck with this question in the wrong group.  Is there any way to retract a question?  (this question has already been answered in the windows95 programing section)
0
 
LVL 1

Accepted Solution

by:
ohell earned 200 total points
ID: 1775693
You could try handling WM_GETDLGCODE and returning DLGC_WANTMESSAGE if you're forwarding the message to the control after handling it...I remember having used this on 16-bit windows  some time back...though don't remember the details very well; online help will probably have something on it.

Hope this helps...
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

This article shows how to use a free utility called 'Parkdale' to easily test the performance and benchmark any Hard Drive(s) installed in your computer. We also look at RAM Disks and their speed comparisons.
Know the reasons and solutions to move/import EDB to New Exchange Server. Also, find out how to recover an Exchange .edb file and to restore the file back.
This Micro Tutorial will give you a basic overview of Windows DVD Burner through its features and interface. This will be demonstrated using Windows 7 operating system.
Windows 8 came with a dramatically different user interface known as Metro. Notably missing from that interface was a Start button and Start Menu. Microsoft responded to negative user feedback of the Metro interface, bringing back the Start button a…

650 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