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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user