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:
Vadim Zeitlin
2001-10-19 18:29:32 +00:00
parent 85ee61ac2e
commit 8461e4c253
19 changed files with 2116 additions and 2100 deletions

View File

@@ -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
}