Weekly updates

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@17644 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
David Webster
2002-10-28 23:24:17 +00:00
parent 5f60853843
commit 1351c353d3
5 changed files with 97 additions and 29 deletions

View File

@@ -965,19 +965,20 @@ bool wxApp::ProcessMessage(
return FALSE;
} // end of wxApp::ProcessMessage
bool gbInOnIdle = FALSE;
void wxApp::OnIdle(
wxIdleEvent& rEvent
)
{
static bool sbInOnIdle = FALSE;
//
// Avoid recursion (via ProcessEvent default case)
//
if (sbInOnIdle)
if (gbInOnIdle)
return;
sbInOnIdle = TRUE;
gbInOnIdle = TRUE;
//
// If there are pending events, we must process them: pending events
@@ -1019,7 +1020,7 @@ void wxApp::OnIdle(
//
rEvent.RequestMore(TRUE);
}
sbInOnIdle = FALSE;
gbInOnIdle = FALSE;
} // end of wxApp::OnIdle
// Send idle event to all top-level windows