From 9c72ebec9010dccf66f84fdb4346f241e86a4f4f Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sat, 1 Nov 2003 09:28:44 +0000 Subject: [PATCH] don't show hidden child frames when the parent is restored git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24385 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/msw/frame.cpp | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/msw/frame.cpp b/src/msw/frame.cpp index 06506d259a..2885c3ed50 100644 --- a/src/msw/frame.cpp +++ b/src/msw/frame.cpp @@ -630,14 +630,12 @@ void wxFrame::IconizeChildFrames(bool bIconize) // restoring it if ( bIconize ) { - // note that we shouldn't touch the hidden frames neither - // because iconizing/restoring them would show them as a side - // effect - frame->m_wasMinimized = frame->IsIconized() || !frame->IsShown(); + frame->m_wasMinimized = frame->IsIconized(); } - // this test works for both iconizing and restoring - if ( !frame->m_wasMinimized ) + // note that we shouldn't touch the hidden frames neither because + // iconizing/restoring them would show them as a side effect + if ( !frame->m_wasMinimized && frame->IsShown() ) frame->Iconize(bIconize); } } -- 2.45.2