|
-
April 1st, 2010, 09:33 PM
#1
How do I understand PreTranslateMessage
My intention is to intercept some messages and to determine if it should be dispatched to window.
Then I chose PreTranslateMessage.
Still I'm a little suspicious if I got it right,
1. does PreTranslateMessage work for entire application, which means, it doesn't work for per window, instead, it works in application scope
2. is PreTranslateMessage my correct solution, I've read somewhere which offered another solution, which is better?
Here's the post, http://blogs.msdn.com/oldnewthing/ar...7/3555596.aspx
thx in advance
-
April 1st, 2010, 10:00 PM
#2
Re: How do I understand PreTranslateMessage
MSDN answers number 1. There's a PreTranslateMessage for the app class and for each CWnd.
Number 2 depends on the problem.
-
April 1st, 2010, 10:25 PM
#3
Re: How do I understand PreTranslateMessage
 Originally Posted by GCDEF
MSDN answers number 1. There's a PreTranslateMessage for the app class and for each CWnd.
Number 2 depends on the problem.
So PreTranslateMessage for app class gets higher priority than which for each CWnd, right?
Suppose that I write a PreTranslateMessage for app class and a PreTranslateMessage for one CWnd, they will work together?
In other word, if I write a PreTranslateMessage for certain CWnd, it only applies to all messages which are supposed to be dispatched to this CWnd, right?
The description in MSDN is quite opaque...
Last edited by LifeIsSuffering; April 2nd, 2010 at 12:41 AM.
-
April 3rd, 2010, 10:11 AM
#4
Re: How do I understand PreTranslateMessage
The article to make it transparent...
Best regards,
Igor
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|