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
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.
Re: How do I understand PreTranslateMessage
Quote:
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...
Re: How do I understand PreTranslateMessage
The article to make it transparent...