Solved

How do I use CDialog::PreTranslateMessage()?

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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

NTFS file system has been developed by Microsoft that is widely used by Windows NT operating system and its advanced versions. It is the mostly used over FAT file system as it provides superior features like reliability, security, storage, efficienc…
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…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
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…

757 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

21 Experts available now in Live!

Get 1:1 Help Now