git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35408
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
node;
node = node->GetNext() )
{
node;
node = node->GetNext() )
{
- if ( !wxDynamicCast(node->GetData(), wxMDIChildFrame)
+ wxWindow *win = node->GetData();
+
+ if ( win->IsShown()
+ && !wxDynamicCast(win, wxMDIChildFrame)
- && node->GetData() != GetStatusBar()
+ && win != GetStatusBar()
#endif // wxUSE_STATUSBAR
#endif // wxUSE_STATUSBAR
- && node->GetData() != GetClientWindow() )
+ && win != GetClientWindow() )
{
// if we have a non-MDI child, do remain visible so that it could
// be used
{
// if we have a non-MDI child, do remain visible so that it could
// be used