mirror of
https://github.com/soukoku/ntwain.git
synced 2026-02-25 13:04:07 +08:00
Proper handling of WM_APP_INVOKE.
This commit is contained in:
@@ -205,8 +205,6 @@ internal sealed class Win32MessagePump : IDisposable
|
||||
return -1;
|
||||
}
|
||||
|
||||
ProcessWorkQueue();
|
||||
|
||||
if (FilterMessage(ref msg))
|
||||
{
|
||||
continue;
|
||||
@@ -332,8 +330,13 @@ internal sealed class Win32MessagePump : IDisposable
|
||||
}
|
||||
}
|
||||
|
||||
private static LRESULT WindowProc(HWND hwnd, uint msg, WPARAM wParam, LPARAM lParam)
|
||||
private LRESULT WindowProc(HWND hwnd, uint msg, WPARAM wParam, LPARAM lParam)
|
||||
{
|
||||
if (msg == WM_APP_INVOKE)
|
||||
{
|
||||
ProcessWorkQueue();
|
||||
return new LRESULT(0);
|
||||
}
|
||||
if (msg == PInvoke.WM_DESTROY)
|
||||
{
|
||||
PInvoke.PostQuitMessage(0);
|
||||
|
||||
Reference in New Issue
Block a user