How can I get UI framework independent (WinForms, WPF, other frameworks) way to filter windows messages?
Thank you.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Windows messages are framework dependent. WPF actually tries to hide this away from you but it depends on the old win32 message loop still for much of it’s behaviour. WinForms is just a paper thin (and badly incomplete) wrapper on win32 too.
The techniques for sharing them are probably useful in terms of writing a common filter function and hooking that up to all the different frameworks.
Note that, as the framework distances itself further from the win32 model the set of messages that are meaningful to intercept becomes fewer and fewer.