Allow MFC have idle events too in the MFC sample

Call MFC base class method from our overridden one.

Closes #15252.
This commit is contained in:
Vadim Zeitlin
2016-03-06 19:38:05 +01:00
parent ac12896939
commit 8e05886313

View File

@@ -295,9 +295,14 @@ BOOL CTheApp::PreTranslateMessage(MSG *msg)
return CWinApp::PreTranslateMessage(msg);
}
BOOL CTheApp::OnIdle(LONG WXUNUSED(lCount))
BOOL CTheApp::OnIdle(LONG lCount)
{
return wxTheApp && wxTheApp->ProcessIdle();
BOOL moreIdle = CWinApp::OnIdle(lCount);
if ( wxTheApp && wxTheApp->ProcessIdle() )
moreIdle = TRUE;
return moreIdle;
}
/*********************************************************************