]> git.saurik.com Git - wxWidgets.git/commitdiff
check whether there is a critical window and don't process events then (this is neede...
authorVadim Zeitlin <vadim@wxwidgets.org>
Fri, 15 Jul 2005 23:01:05 +0000 (23:01 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Fri, 15 Jul 2005 23:01:05 +0000 (23:01 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34863 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/msw/window.cpp

index 1699bfeda023c898806c3cc94673f5f9af82a339..80c338d8df22d565e56fd97f15a99c89eb87ac2f 100644 (file)
@@ -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);