]> git.saurik.com Git - wxWidgets.git/commitdiff
Fixed wxMDIChildWindow to be a native window on Mac. Otherwise, functions like SetSiz...
authorKevin Ollivier <kevino@theolliviers.com>
Mon, 28 Jun 2004 18:18:54 +0000 (18:18 +0000)
committerKevin Ollivier <kevino@theolliviers.com>
Mon, 28 Jun 2004 18:18:54 +0000 (18:18 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28053 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/mac/carbon/mdi.cpp

index 31d91ad9c82883ebb5e797f1abefd2d06b907b4d..1cdfc54d3bd8341663b9ccf80307e1a6b92d8b75 100644 (file)
@@ -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;