From: David Elliott Date: Mon, 22 Nov 2004 20:19:37 +0000 (+0000) Subject: Do not move the wxMDIParentFrame to (-10000,-10000) if it has a toolbar. X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/7bf8eb78aa04adf1142688b0dfde3f377d99b134?ds=inline Do not move the wxMDIParentFrame to (-10000,-10000) if it has a toolbar. NOTE: Ideally the toolbar would be moved internally to wxMac into its own floating frame and then the question of whether the parent frame should be hidden would be one of "does it not have controls OTHER than a toolbar?" git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30708 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/mac/carbon/mdi.cpp b/src/mac/carbon/mdi.cpp index 0c80890f18..542a76cdc7 100644 --- a/src/mac/carbon/mdi.cpp +++ b/src/mac/carbon/mdi.cpp @@ -234,7 +234,8 @@ bool wxMDIParentFrame::Show( bool show ) if ( show ) { // TODO: check for other children - Move(-10000, -10000); + if(!GetToolBar()) + Move(-10000, -10000); } if ( !wxFrame::Show(show) )