X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a0f3867a6a0cd50b878e9b2ea502616e59e19b99..83911a5a4d3be63141419b4401259093514794a3:/src/msw/app.cpp diff --git a/src/msw/app.cpp b/src/msw/app.cpp index 05cb68f704..bb05dd8873 100644 --- a/src/msw/app.cpp +++ b/src/msw/app.cpp @@ -1140,24 +1140,22 @@ bool wxApp::SendIdleEvents() // Send idle event to window and all subwindows bool wxApp::SendIdleEvents(wxWindow* win) { - bool needMore = FALSE; - wxIdleEvent event; event.SetEventObject(win); win->GetEventHandler()->ProcessEvent(event); - if (event.MoreRequested()) - needMore = TRUE; + bool needMore = event.MoreRequested(); - wxWindowList::Node* node = win->GetChildren().GetFirst(); - while (node) + wxWindowList::Node *node = win->GetChildren().GetFirst(); + while ( node ) { - wxWindow* win = node->GetData(); + wxWindow *win = node->GetData(); if (SendIdleEvents(win)) needMore = TRUE; node = node->GetNext(); } + return needMore; }