From 4a60e3f007c8d63e0957dca431e4559fc7fcfbe6 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Wed, 31 Aug 2005 22:53:51 +0000 Subject: [PATCH] hide the MDI parent frame instead of just moving it away (why didn't I do it like this before?) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35394 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/mac/carbon/mdi.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/mac/carbon/mdi.cpp b/src/mac/carbon/mdi.cpp index dbdc6da93b..b79928d8f6 100644 --- a/src/mac/carbon/mdi.cpp +++ b/src/mac/carbon/mdi.cpp @@ -237,8 +237,12 @@ bool wxMDIParentFrame::Show( bool show ) if ( show ) { // TODO: check for other children - if(!GetToolBar()) - Move(-10000, -10000); + if ( !GetToolBar() ) + { + // call the base class version to just update the flag but don't + // really make the window visible + return wxFrameBase::Show(); + } } if ( !wxFrame::Show(show) )