Ensure that wxApp::Yield is always processing pending event by creating a

temporary event loop if needed.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53606 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Stefan Neis
2008-05-16 12:50:26 +00:00
parent 9534c0039b
commit f212e222e7
5 changed files with 30 additions and 14 deletions

View File

@@ -535,6 +535,7 @@ bool wxApp::Yield(bool onlyIfNeeded)
// We want to go back to the main message loop
// if we see a WM_QUIT. (?)
//
wxEventLoopGuarantor dummyLoopIfNeeded;
while (::WinPeekMsg(vHab, &vMsg, (HWND)NULL, 0, 0, PM_NOREMOVE) && vMsg.msg != WM_QUIT)
{
#if wxUSE_THREADS