#pragma hdrstop
#endif
+#include "wx/evtloop.h"
+
#ifndef WX_PRECOMP
#if wxUSE_GUI
#include "wx/window.h"
#endif
#include "wx/app.h"
+ #include "wx/log.h"
#endif //WX_PRECOMP
-#include "wx/evtloop.h"
#include "wx/thread.h"
#include "wx/except.h"
#include "wx/msw/private.h"
}
// if there are pending events, we must process them.
- ProcessPendingEvents();
+ if (wxTheApp)
+ wxTheApp->ProcessPendingEvents();
// put back unprocessed events in the queue
DWORD id = GetCurrentThreadId();