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
This commit is contained in:
parent
3ee39f97af
commit
49c48f8190
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user