From: Vadim Zeitlin Date: Fri, 15 Jul 2005 23:01:05 +0000 (+0000) Subject: check whether there is a critical window and don't process events then (this is neede... X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/a3dc1da946b0e86e786e1babea6ca68d5813f342?ds=sidebyside;hp=c707a0d410c403d24764a3eab06c365b92265951 check whether there is a critical window and don't process events then (this is needed as sometimes window proc is called directly without passing by wxEventLoop) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34863 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/msw/window.cpp b/src/msw/window.cpp index 1699bfeda0..80c338d8df 100644 --- a/src/msw/window.cpp +++ b/src/msw/window.cpp @@ -54,6 +54,7 @@ #include "wx/ownerdrw.h" #endif +#include "wx/evtloop.h" #include "wx/module.h" #include "wx/sysopt.h" @@ -2229,7 +2230,7 @@ LRESULT WXDLLEXPORT APIENTRY _EXPORT wxWndProc(HWND hWnd, UINT message, WPARAM w LRESULT rc; - if ( wnd ) + if ( wnd && wxEventLoop::AllowProcessing(wnd) ) rc = wnd->MSWWindowProc(message, wParam, lParam); else rc = ::DefWindowProc(hWnd, message, wParam, lParam);