Solved

How do I use CDialog::PreTranslateMessage()?

Posted on 1997-06-13
3
530 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 100 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

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

A Bare Metal Image backup allows for the restore of an entire system to a similar or dissimilar hardware. They are highly useful for migrations and disaster recovery. Bare Metal Image backups support Full and Incremental backups. Differential backup…
Today, still in the boom of Apple, PC's and products, nearly 50% of the computer users use Windows as graphical operating systems. If you are among those users who love windows, but are grappling to keep the system's hard drive optimized, then you s…
With the advent of Windows 10, Microsoft is pushing a Get Windows 10 icon into the notification area (system tray) of qualifying computers. There are many reasons for wanting to remove this icon. This two-part Experts Exchange video Micro Tutorial s…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

730 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