X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d4d799e9ea2ff317ac8405cf07eca5dd2c756530..6178debcd342963974dbdce6ac2ddb2fbe89e42a:/src/osx/toplevel_osx.cpp diff --git a/src/osx/toplevel_osx.cpp b/src/osx/toplevel_osx.cpp index 16c88a85d8..3c1c8ae4d3 100644 --- a/src/osx/toplevel_osx.cpp +++ b/src/osx/toplevel_osx.cpp @@ -6,7 +6,7 @@ // Created: 24.09.01 // RCS-ID: $Id$ // Copyright: (c) 2001-2004 Stefan Csomor -// License: wxWindows licence +// Licence: wxWindows licence /////////////////////////////////////////////////////////////////////////////// // ============================================================================ @@ -86,6 +86,17 @@ bool wxTopLevelWindowMac::Create(wxWindow *parent, return true; } +bool wxTopLevelWindowMac::Create(wxWindow *parent, + WXWindow nativeWindow) +{ + if ( !wxNonOwnedWindow::Create(parent, nativeWindow ) ) + return false; + + wxTopLevelWindows.Append(this); + + return true; +} + wxTopLevelWindowMac::~wxTopLevelWindowMac() { } @@ -114,6 +125,9 @@ void wxTopLevelWindowMac::Maximize(bool maximize) bool wxTopLevelWindowMac::IsMaximized() const { + if ( m_nowpeer == NULL ) + return false; + return m_nowpeer->IsMaximized(); } @@ -125,6 +139,9 @@ void wxTopLevelWindowMac::Iconize(bool iconize) bool wxTopLevelWindowMac::IsIconized() const { + if ( m_nowpeer == NULL ) + return false; + return m_nowpeer->IsIconized(); } @@ -147,7 +164,8 @@ wxPoint wxTopLevelWindowMac::GetClientAreaOrigin() const void wxTopLevelWindowMac::SetTitle(const wxString& title) { - wxWindow::SetLabel( title ) ; + m_label = title ; + if ( m_nowpeer ) m_nowpeer->SetTitle(title, GetFont().GetEncoding() ); }