Execution control stuff

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@4267 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
David Webster
1999-10-29 22:29:22 +00:00
parent 33a43c5e1e
commit dde11e6053
3 changed files with 162 additions and 152 deletions

View File

@@ -1047,25 +1047,19 @@ void wxExit()
// Yield to incoming messages
bool wxYield()
{
// TODO:
/*
MSG msg;
HAB vHab;
QMSG vMsg;
// We want to go back to the main message loop
// if we see a WM_QUIT. (?)
#ifdef __WXWINE__
while (PeekMessage(&msg, (HWND)NULL, 0, 0, PM_NOREMOVE) && msg.message != WM_QUIT)
#else
while (PeekMessage(&msg, NULL, 0, 0, PM_NOREMOVE) && msg.message != WM_QUIT)
#endif
while (::WinPeekMsg(vHab, &vMsg, (HWND)NULL, 0, 0, PM_NOREMOVE) && vMsg.msg != WM_QUIT)
{
if ( !wxTheApp->DoMessage() )
if (!wxTheApp->DoMessage())
break;
}
// If they are pending events, we must process them.
#if wxUSE_THREADS
wxTheApp->ProcessPendingEvents();
#endif
*/
return TRUE;
}