X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/3f66f6a5b3583b02c34854556eb83e3a808524ce..c7ea5a0c7edbdb777640e2613bfaac5f649b3340:/src/generic/scrlwing.cpp?ds=sidebyside diff --git a/src/generic/scrlwing.cpp b/src/generic/scrlwing.cpp index ed7d288d7e..ee49a9c6a1 100644 --- a/src/generic/scrlwing.cpp +++ b/src/generic/scrlwing.cpp @@ -1201,6 +1201,14 @@ wxScrollHelper::wxScrollHelper(wxWindow *winToScroll) m_yVisibility = wxSHOW_SB_DEFAULT; } +bool wxScrollHelper::IsScrollbarShown(int orient) const +{ + wxScrollbarVisibility visibility = orient == wxHORIZONTAL ? m_xVisibility + : m_yVisibility; + + return visibility != wxSHOW_SB_NEVER; +} + void wxScrollHelper::DoShowScrollbars(wxScrollbarVisibility horz, wxScrollbarVisibility vert) {