From 84be293d47d586ed72b1a8da0f1e76636a30063b Mon Sep 17 00:00:00 2001 From: Kevin Ollivier Date: Mon, 28 Jun 2004 18:18:54 +0000 Subject: [PATCH] Fixed wxMDIChildWindow to be a native window on Mac. Otherwise, functions like SetSize would crash. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28053 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/mac/carbon/mdi.cpp | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/src/mac/carbon/mdi.cpp b/src/mac/carbon/mdi.cpp index 31d91ad9c8..1cdfc54d3b 100644 --- a/src/mac/carbon/mdi.cpp +++ b/src/mac/carbon/mdi.cpp @@ -368,14 +368,8 @@ wxMDIClientWindow::~wxMDIClientWindow() bool wxMDIClientWindow::CreateClient(wxMDIParentFrame *parent, long style) { - - m_windowId = (int)NewControlId(); - - if ( parent ) - { - parent->AddChild(this); - } - m_backgroundColour = wxSystemSettings::GetColour(wxSYS_COLOUR_APPWORKSPACE); + if ( !wxWindow::Create(parent, wxID_ANY, wxDefaultPosition, wxDefaultSize, style)) + return FALSE; wxModelessWindows.Append(this); return TRUE; -- 2.50.0