added wxApp::Yield()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@12095 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -36,6 +36,7 @@
|
||||
#include "wx/log.h"
|
||||
|
||||
#if wxUSE_GUI
|
||||
#include "wx/app.h"
|
||||
#include "wx/window.h"
|
||||
#include "wx/frame.h"
|
||||
#include "wx/menu.h"
|
||||
@@ -1312,4 +1313,25 @@ long wxExecute(const wxString& command,
|
||||
return wxDoExecuteWithCapture(command, output, &error);
|
||||
}
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
// wxApp::Yield() wrappers for backwards compatibility
|
||||
// ----------------------------------------------------------------------------
|
||||
|
||||
bool wxYield()
|
||||
{
|
||||
#if wxUSE_GUI
|
||||
return wxTheApp && wxTheApp->Yield();
|
||||
#else
|
||||
return FALSE;
|
||||
#endif
|
||||
}
|
||||
|
||||
bool wxYieldIfNeeded()
|
||||
{
|
||||
#if wxUSE_GUI
|
||||
return wxTheApp && wxTheApp->Yield(TRUE);
|
||||
#else
|
||||
return FALSE;
|
||||
#endif
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user