Now wxYield() calls wxApp::ProcessIdle() which also

entails that wxYield() will flush events that have
   been sent from other threads. I don't know what
   wxMSW does here, but I guess the same wouldn't be
   bad.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2544 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robert Roebling 1999-05-23 19:33:16 +00:00
parent e459f82d01
commit 1601ab7a28
2 changed files with 8 additions and 0 deletions

View File

@ -143,6 +143,9 @@ bool wxYield()
/* it's necessary to call ProcessIdle() to update the frames sizes which
might have been changed (it also will update other things set from
OnUpdateUI() which is a nice (and desired) side effect) */
while (wxTheApp->ProcessIdle()) { }
#if 0
for ( wxWindowList::Node *node = wxTopLevelWindows.GetFirst();
node;
node = node->GetNext() )
@ -150,6 +153,7 @@ bool wxYield()
wxWindow *win = node->GetData();
win->OnInternalIdle();
}
#endif
if (wxTheApp->m_idleTag)
{

View File

@ -143,6 +143,9 @@ bool wxYield()
/* it's necessary to call ProcessIdle() to update the frames sizes which
might have been changed (it also will update other things set from
OnUpdateUI() which is a nice (and desired) side effect) */
while (wxTheApp->ProcessIdle()) { }
#if 0
for ( wxWindowList::Node *node = wxTopLevelWindows.GetFirst();
node;
node = node->GetNext() )
@ -150,6 +153,7 @@ bool wxYield()
wxWindow *win = node->GetData();
win->OnInternalIdle();
}
#endif
if (wxTheApp->m_idleTag)
{