toplevel window is shown on screen even if its parent is hidden
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@50876 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
76c32e7b97
commit
8a6a997fb0
@ -881,8 +881,11 @@ bool wxWindowBase::Enable(bool enable)
|
||||
|
||||
bool wxWindowBase::IsShownOnScreen() const
|
||||
{
|
||||
// A window is shown on screen if it itself is shown and so are all its
|
||||
// parents. But if a window is toplevel one, then its always visible on
|
||||
// screen if IsShown() returns true, even if it has a hidden parent.
|
||||
return IsShown() &&
|
||||
(GetParent() == NULL || GetParent()->IsShownOnScreen());
|
||||
(IsTopLevel() || GetParent() == NULL || GetParent()->IsShownOnScreen());
|
||||
}
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
|
Loading…
Reference in New Issue
Block a user