X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/9eddec696f06d65a80e7339b2fae14fcb55f8383..48a2e193ec60bca94903706a7fd7528e9311037e:/src/motif/mdi.cpp diff --git a/src/motif/mdi.cpp b/src/motif/mdi.cpp index 09894eea98..fe31aa958a 100644 --- a/src/motif/mdi.cpp +++ b/src/motif/mdi.cpp @@ -338,10 +338,6 @@ bool wxMDIChildFrame::Create(wxMDIParentFrame *parent, SetName(name); SetWindowStyleFlag(style); - m_backgroundColour = wxSystemSettings::GetColour(wxSYS_COLOUR_APPWORKSPACE); - m_foregroundColour = *wxBLACK; - m_font = wxSystemSettings::GetFont(wxSYS_DEFAULT_GUI_FONT); - if ( id > -1 ) m_windowId = id; else @@ -349,11 +345,12 @@ bool wxMDIChildFrame::Create(wxMDIParentFrame *parent, wxMDIClientWindow* clientWindow = parent->GetClientWindow(); - wxASSERT_MSG( (clientWindow != (wxWindow*) NULL), "Missing MDI client window."); + wxCHECK_MSG( clientWindow, false, "Missing MDI client window." ); - if (clientWindow) clientWindow->AddChild(this); + clientWindow->AddChild(this); SetMDIParentFrame(parent); + PreCreation(); int width = size.x; int height = size.y; @@ -393,10 +390,9 @@ bool wxMDIChildFrame::Create(wxMDIParentFrame *parent, XtAddEventHandler((Widget) m_mainWidget, ExposureMask,False, wxUniversalRepaintProc, (XtPointer) this); + PostCreation(); AttachWidget (parent, m_mainWidget, (WXWidget) NULL, pos.x, pos.y, size.x, size.y); - ChangeBackgroundColour(); - XtManageChild((Widget) m_mainWidget); SetTitle(title); @@ -640,14 +636,9 @@ bool wxMDIClientWindow::CreateClient(wxMDIParentFrame *parent, long style) { SetWindowStyleFlag(style); - // m_windowParent = parent; - // m_backgroundColour = wxSystemSettings::GetColour(wxSYS_COLOUR_APPWORKSPACE); - bool success = wxNotebook::Create(parent, wxID_NOTEBOOK_CLIENT_AREA, wxPoint(0, 0), wxSize(100, 100), 0); if (success) { - wxFont font(10, wxSWISS, wxNORMAL, wxNORMAL); - SetFont(font); return true; } else