wxDialog change (Show() completely rewritten, modal dialogs handling changed)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@5737 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2000-01-30 01:31:09 +00:00
parent 55c56a6d80
commit b6c588e1a6
3 changed files with 484 additions and 429 deletions

View File

@@ -916,12 +916,10 @@ int wxApp::MainLoop()
wxMutexGuiLeaveOrEnter();
#endif // wxUSE_THREADS
while ( !::PeekMessage(&s_currentMsg, 0, 0, 0, PM_NOREMOVE) &&
ProcessIdle() )
{
}
while ( !Pending() && ProcessIdle() )
;
// a message came or no more idle processing to do
DoMessage();
}
@@ -940,12 +938,13 @@ bool wxApp::ProcessIdle()
void wxApp::ExitMainLoop()
{
// VZ: why not ::PostQuitMessage()?
m_keepGoing = FALSE;
}
bool wxApp::Pending()
{
return (::PeekMessage(&s_currentMsg, 0, 0, 0, PM_NOREMOVE) != 0);
return ::PeekMessage(&s_currentMsg, 0, 0, 0, PM_NOREMOVE) != 0;
}
void wxApp::Dispatch()