No real changes, just make wxWindow::CanScroll() virtual.
This will allow overriding it in wxScrolled<>, see #15440. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74713 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1221,11 +1221,7 @@ public:
|
|||||||
// ----------
|
// ----------
|
||||||
|
|
||||||
// can the window have the scrollbar in this orientation?
|
// can the window have the scrollbar in this orientation?
|
||||||
bool CanScroll(int orient) const
|
virtual bool CanScroll(int orient) const;
|
||||||
{
|
|
||||||
return (m_windowStyle &
|
|
||||||
(orient == wxHORIZONTAL ? wxHSCROLL : wxVSCROLL)) != 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
// does the window have the scrollbar in this orientation?
|
// does the window have the scrollbar in this orientation?
|
||||||
bool HasScrollbar(int orient) const;
|
bool HasScrollbar(int orient) const;
|
||||||
|
@@ -1113,6 +1113,12 @@ void wxWindowBase::SendSizeEventToParent(int flags)
|
|||||||
parent->SendSizeEvent(flags);
|
parent->SendSizeEvent(flags);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool wxWindowBase::CanScroll(int orient) const
|
||||||
|
{
|
||||||
|
return (m_windowStyle &
|
||||||
|
(orient == wxHORIZONTAL ? wxHSCROLL : wxVSCROLL)) != 0;
|
||||||
|
}
|
||||||
|
|
||||||
bool wxWindowBase::HasScrollbar(int orient) const
|
bool wxWindowBase::HasScrollbar(int orient) const
|
||||||
{
|
{
|
||||||
// if scrolling in the given direction is disabled, we can't have the
|
// if scrolling in the given direction is disabled, we can't have the
|
||||||
|
Reference in New Issue
Block a user