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
This commit is contained in:
Vadim Zeitlin 2005-07-15 23:01:05 +00:00
parent c707a0d410
commit a3dc1da946

View 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);