From daa9c57738ed2fb4101c70788c7505a2ed2c0582 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Tue, 9 Dec 2008 13:35:08 +0000 Subject: [PATCH] call wxMDIClientWindow::CreateClient() git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57215 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/osx/carbon/mdi.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/osx/carbon/mdi.cpp b/src/osx/carbon/mdi.cpp index 3367c1bc8b..daf448f6ff 100644 --- a/src/osx/carbon/mdi.cpp +++ b/src/osx/carbon/mdi.cpp @@ -118,8 +118,10 @@ bool wxMDIParentFrame::Create(wxWindow *parent, m_parentFrameActive = true; m_clientWindow = OnCreateClient(); + if ( !m_clientWindow || !m_clientWindow->CreateClient(this, style) ) + return false; - return m_clientWindow != NULL; + return true; } wxMDIParentFrame::~wxMDIParentFrame() -- 2.45.2