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

How do I use CDialog::PreTranslateMessage()?

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

Portable, direct connect server access

The ATEN CV211 connects a laptop directly to any server allowing you instant access to perform data maintenance and local operations, for quick troubleshooting, updating, service and repair.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Extra security implementation for 2017 9 69
Computer account cleanup 90 128
extend monitor issues 6 45
wmiprvse.exe (How to prevent wmiprvse to check COM port?) 1 29
This is an article about Leadership and accepting and adapting to new challenges. It focuses mostly on upgrading to Windows 10.
How to record audio from input sources to your PC – connected devices, connected preamp to record vinyl discs, streaming media, that play through your audio card: Vista, Windows 7, Windows 8, Windows 8.1 and Windows 10 – both 32 bit & 64.
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…
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…

856 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