X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/6e42617af493da590f7d08ed248be615ab817eee..ffbf7f6634ebdce1055ec21256c4fd3e3bd410c8:/src/mac/carbon/mdi.cpp diff --git a/src/mac/carbon/mdi.cpp b/src/mac/carbon/mdi.cpp index 428a0dc410..ca02c69c0d 100644 --- a/src/mac/carbon/mdi.cpp +++ b/src/mac/carbon/mdi.cpp @@ -25,8 +25,6 @@ #include "wx/mac/private.h" #include "wx/mac/uma.h" -extern wxWindowList wxModelessWindows; - IMPLEMENT_DYNAMIC_CLASS(wxMDIParentFrame, wxFrame) IMPLEMENT_DYNAMIC_CLASS(wxMDIChildFrame, wxFrame) IMPLEMENT_DYNAMIC_CLASS(wxMDIClientWindow, wxWindow) @@ -40,7 +38,7 @@ BEGIN_EVENT_TABLE(wxMDIClientWindow, wxWindow) EVT_SCROLL(wxMDIClientWindow::OnScroll) END_EVENT_TABLE() -static const wxChar *TRACE_MDI = _T("mdi"); +#define TRACE_MDI "mdi" static const int IDM_WINDOWTILEHOR = 4001; static const int IDM_WINDOWCASCADE = 4002; @@ -391,12 +389,11 @@ bool wxMDIChildFrame::Create(wxMDIParentFrame *parent, if (parent) parent->AddChild(this); - MacCreateRealWindow( title, pos , size , MacRemoveBordersFromStyle(style) , name ) ; + MacCreateRealWindow( pos , size , MacRemoveBordersFromStyle(style) , name ) ; + SetTitle( title ); SetBackgroundColour(wxSystemSettings::GetColour(wxSYS_COLOUR_APPWORKSPACE)); - wxModelessWindows.Append(this); - return true; } @@ -479,6 +476,7 @@ void wxMDIChildFrame::Restore() void wxMDIChildFrame::Activate() { + Raise (); } //----------------------------------------------------------------------------- @@ -499,8 +497,6 @@ bool wxMDIClientWindow::CreateClient(wxMDIParentFrame *parent, long style) if ( !wxWindow::Create(parent, wxID_ANY, wxDefaultPosition, wxDefaultSize, style) ) return false; - wxModelessWindows.Append(this); - return true; }