PreTranslateMessage
Could somebody explain the above more that what it is explained in MSDN. I only know that it filters a message ..but what part of it and why ?
~~~º¥º -
PreTranslateMessage is sort of the "snoop" feature of MFC. Basically it lets you sift through your messages before they''re translated and dispatched to everything the app owns.
I usually use it for application hotkeys and sometimes for setting off extra messages as a result of a certain message being processed (for multiple view synching... I do a lot of really odd stuff).
If you want to override messages before they hit your views (which I usually do for multiple views in a single frame), you want to use the frame''s OnCmdMsg.
Warning that this stuff can cause some severely erratic behaviour so read up on it before you mess with it. Codeguru would probably be a good place to look.
-fel
I usually use it for application hotkeys and sometimes for setting off extra messages as a result of a certain message being processed (for multiple view synching... I do a lot of really odd stuff).
If you want to override messages before they hit your views (which I usually do for multiple views in a single frame), you want to use the frame''s OnCmdMsg.
Warning that this stuff can cause some severely erratic behaviour so read up on it before you mess with it. Codeguru would probably be a good place to look.
-fel
~ The opinions stated by this individual are the opinions of this individual and not the opinions of her company, any organization she might be part of, her parrot, or anyone else. ~
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement