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:
@@ -54,6 +54,7 @@
|
|||||||
#include "wx/ownerdrw.h"
|
#include "wx/ownerdrw.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#include "wx/evtloop.h"
|
||||||
#include "wx/module.h"
|
#include "wx/module.h"
|
||||||
#include "wx/sysopt.h"
|
#include "wx/sysopt.h"
|
||||||
|
|
||||||
@@ -2229,7 +2230,7 @@ LRESULT WXDLLEXPORT APIENTRY _EXPORT wxWndProc(HWND hWnd, UINT message, WPARAM w
|
|||||||
|
|
||||||
LRESULT rc;
|
LRESULT rc;
|
||||||
|
|
||||||
if ( wnd )
|
if ( wnd && wxEventLoop::AllowProcessing(wnd) )
|
||||||
rc = wnd->MSWWindowProc(message, wParam, lParam);
|
rc = wnd->MSWWindowProc(message, wParam, lParam);
|
||||||
else
|
else
|
||||||
rc = ::DefWindowProc(hWnd, message, wParam, lParam);
|
rc = ::DefWindowProc(hWnd, message, wParam, lParam);
|
||||||
|
Reference in New Issue
Block a user