From 49c48f81905323f2a1fdd719b093528048e538aa Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Thu, 1 Sep 2005 23:28:40 +0000 Subject: [PATCH] ignore hidden windows when deciding if the MDI parent frame should be visible git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35408 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/mac/carbon/mdi.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/mac/carbon/mdi.cpp b/src/mac/carbon/mdi.cpp index c7d898778b..33cc7da623 100644 --- a/src/mac/carbon/mdi.cpp +++ b/src/mac/carbon/mdi.cpp @@ -290,11 +290,14 @@ bool wxMDIParentFrame::ShouldBeVisible() const node; node = node->GetNext() ) { - if ( !wxDynamicCast(node->GetData(), wxMDIChildFrame) + wxWindow *win = node->GetData(); + + if ( win->IsShown() + && !wxDynamicCast(win, wxMDIChildFrame) #if wxUSE_STATUSBAR - && node->GetData() != GetStatusBar() + && win != GetStatusBar() #endif // wxUSE_STATUSBAR - && node->GetData() != GetClientWindow() ) + && win != GetClientWindow() ) { // if we have a non-MDI child, do remain visible so that it could // be used