X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/6418cb93022a02da40be0e50aea3d5615074fb71..6ba636000f13b4bf7d3e7dcfad429713085f6700:/src/mac/mdi.cpp?ds=sidebyside diff --git a/src/mac/mdi.cpp b/src/mac/mdi.cpp index 598f62c3f5..887f726504 100644 --- a/src/mac/mdi.cpp +++ b/src/mac/mdi.cpp @@ -63,7 +63,7 @@ bool wxMDIParentFrame::Create(wxWindow *parent, else m_windowId = (int)NewControlId(); - // TODO: create MDI parent frame + // this window does not exist really wxModelessWindows.Append(this); @@ -77,7 +77,7 @@ wxMDIParentFrame::~wxMDIParentFrame() // Get size *available for subwindows* i.e. excluding menu bar. void wxMDIParentFrame::DoGetClientSize(int *x, int *y) const { - wxFrame::DoGetClientSize( x , y ) ; + wxDisplaySize( x , y ) ; } void wxMDIParentFrame::SetMenuBar(wxMenuBar *menu_bar) @@ -177,7 +177,9 @@ bool wxMDIChildFrame::Create(wxMDIParentFrame *parent, if (parent) parent->AddChild(this); - // TODO: create child frame + MacCreateRealWindow( title, pos , size , MacRemoveBordersFromStyle(style) , name ) ; + + m_macWindowData->m_macWindowBackgroundTheme = kThemeBrushDocumentWindowBackground ; wxModelessWindows.Append(this); return FALSE;