Solved

How do I use CDialog::PreTranslateMessage()?

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

Do email signature updates give you a headache?

Constantly trying to correctly format email signatures? Spending all of your time at every user’s desk to make updates? Want high-quality HTML signatures on all devices, including on mobiles and Macs? Then, let Exclaimer solve all your email signature problems today!

Question has a verified solution.

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

When you start your Windows 10 PC and got an "Operating system not found" error or just saw  "Auto repair for startup" or a blinking cursor with black screen. A loop for Auto repair will start but fix nothing.  You will be panic as there are no back…
In this article, I will show you HOW TO: Install VMware Tools for Windows on a VMware Windows virtual machine on a VMware vSphere Hypervisor 6.5 (ESXi 6.5) Host Server, using the VMware Host Client. The virtual machine has Windows Server 2016 instal…
The viewer will learn how to successfully create a multiboot device using the SARDU utility on Windows 7. Start the SARDU utility: Change the image directory to wherever you store your ISOs, this will prevent you from having 2 copies of an ISO wit…
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…

920 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now