Windows message WM_QUIT and WPF -
i have catch wm_quit message in wpf there problem.
intptr windowhandle = (new windowinterophelper(this)).handle; hwndsource src = hwndsource.fromhwnd(windowhandle); src.addhook(new hwndsourcehook(wndproc)); wndproc works fine , catch messages except wm_quit.
msdn says:
the wm_quit message not associated window , therefore never received through window's window procedure. retrieved getmessage or peekmessage functions.
is there way catch message in wpf? maybe componentdispatcher?
there also: http://www.pinvoke.net/default.aspx/user32.getmessage
which can used in c# environment.
any welcome.
Comments
Post a Comment