ProcessPendingEvents() is now in wxApp

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59286 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Francesco Montorsi
2009-03-02 21:14:01 +00:00
parent 063fcdc78d
commit 834fcdd949
2 changed files with 4 additions and 2 deletions

View File

@@ -163,7 +163,8 @@ bool wxGUIEventLoop::YieldFor(long eventsToProcess)
the main thread waits and then notify the main thread by posting
an event.
*/
ProcessPendingEvents();
if (wxTheApp)
wxTheApp->ProcessPendingEvents();
#if wxUSE_LOG
// let the logs be flashed again

View File

@@ -503,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();