X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e75491071dbefcada61175e3eb89ce4edf335983..57591e0edb8cbaa2b12e4a0da68fe445fa636747:/src/mac/carbon/mdi.cpp diff --git a/src/mac/carbon/mdi.cpp b/src/mac/carbon/mdi.cpp index de142a0e29..887f726504 100644 --- a/src/mac/carbon/mdi.cpp +++ b/src/mac/carbon/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); @@ -75,9 +75,9 @@ wxMDIParentFrame::~wxMDIParentFrame() } // Get size *available for subwindows* i.e. excluding menu bar. -void wxMDIParentFrame::GetClientSize(int *x, int *y) const +void wxMDIParentFrame::DoGetClientSize(int *x, int *y) const { - // TODO + 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; @@ -241,6 +243,5 @@ bool wxMDIClientWindow::CreateClient(wxMDIParentFrame *parent, long style) // Explicitly call default scroll behaviour void wxMDIClientWindow::OnScroll(wxScrollEvent& event) { - Default(); // Default processing }