X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/657b4fd417a9750ac699512005694c1b392fd866..571d2e0f232be3f7220c485c7e72eccfb87f2855:/src/common/wincmn.cpp?ds=sidebyside diff --git a/src/common/wincmn.cpp b/src/common/wincmn.cpp index 9d0b6f4582..7d16c18b26 100644 --- a/src/common/wincmn.cpp +++ b/src/common/wincmn.cpp @@ -200,6 +200,8 @@ wxWindowBase::wxWindowBase() m_virtualSize = wxDefaultSize; + m_scrollHelper = (wxScrollHelper *) NULL; + m_minVirtualWidth = m_maxVirtualWidth = wxDefaultCoord; m_minVirtualHeight = @@ -745,9 +747,10 @@ bool wxWindowBase::Enable(bool enable) } } -bool wxWindowBase::IsVisible() const +bool wxWindowBase::IsShownOnScreen() const { - return IsShown() && (GetParent() == NULL || GetParent()->IsVisible()); + return IsShown() && + (GetParent() == NULL || GetParent()->IsShownOnScreen()); } // ----------------------------------------------------------------------------