]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/evtloop.cpp
Fixes needed to get transient popup windows working, also implement SetFont for OS...
[wxWidgets.git] / src / msw / evtloop.cpp
index aa294c31c4787f1559d037d4f8b11c9d2fa9c822..81276cfaeed1ec0de7207051f95016afbe998faa 100644 (file)
     #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"
@@ -501,7 +503,8 @@ bool wxGUIEventLoop::YieldFor(long eventsToProcess)
     }
 
     // if there are pending events, we must process them.
-    ProcessPendingEvents();
+    if (wxTheApp)
+        wxTheApp->ProcessPendingEvents();
 
     // put back unprocessed events in the queue
     DWORD id = GetCurrentThreadId();