give focus to show top level windows

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@11870 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Václav Slavík
2001-10-07 14:33:30 +00:00
parent 15678bec37
commit 917afc7b81
2 changed files with 10 additions and 0 deletions

View File

@@ -58,6 +58,8 @@ public:
virtual bool ShowFullScreen(bool show, long style = wxFULLSCREEN_ALL); virtual bool ShowFullScreen(bool show, long style = wxFULLSCREEN_ALL);
virtual bool IsFullScreen() const { return m_fsIsShowing; } virtual bool IsFullScreen() const { return m_fsIsShowing; }
virtual bool Show(bool show = TRUE);
virtual void SetTitle(const wxString &title) { m_title = title; } virtual void SetTitle(const wxString &title) { m_title = title; }
virtual wxString GetTitle() const { return m_title; } virtual wxString GetTitle() const { return m_title; }

View File

@@ -136,6 +136,14 @@ bool wxTopLevelWindowMGL::ShowFullScreen(bool show, long style)
return TRUE; return TRUE;
} }
bool wxTopLevelWindowMGL::Show(bool show)
{
bool ret = wxTopLevelWindowBase::Show(show);
if ( ret && show )
SetFocus();
return ret;
}
void wxTopLevelWindowMGL::Maximize(bool maximize) void wxTopLevelWindowMGL::Maximize(bool maximize)
{ {
if ( maximize && !m_isMaximized ) if ( maximize && !m_isMaximized )