9#if !defined(OWL_SCROLLER_H)
13#if defined(BI_HAS_PRAGMA_ONCE)
24#if !defined(OWL_GEOMETRY_H)
53 virtual void SetWindow(
TWindow* win);
55 virtual void SetPageSize();
56 virtual void SetSBarRange();
61 virtual void EndView();
64 virtual void ScrollTo(
long x,
long y);
67 virtual void ShowScrollBar(
int code,
bool show=
true);
71 void ScrollBy(
long dx,
long dy);
73 virtual bool IsAutoMode();
74 virtual void AutoScroll();
79 bool IsVisibleRect(
long x,
long y,
int xExt,
int yExt);
82 virtual void SetScrollPage(
int bar,
int page,
bool redraw =
true);
83 virtual int GetScrollPage(
int bar)
const;
86 virtual int GetScrollPos(
int bar)
const;
87 virtual int SetScrollPos(
int bar,
int pos,
bool redraw =
true);
88 virtual int GetScrollTrackPos(
int bar)
const;
TDC is the root class for GDI DC wrappers.
TRect is a mathematical class derived from tagRect.
Classes that inherit from TStreamableBase are known as streamable classes (their objects can be writt...
TWindow, derived from TEventHandler and TStreamableBase, provides window-specific behavior and encaps...
void ShowScrollBar(int bar, bool show=true)
Displays or hides the scroll bar.
int GetScrollTrackPos(int bar) const
Returns the thumb track position in the scroll bar.
bool EnableScrollBar(uint sbFlags=SB_BOTH, uint arrowFlags=ESB_ENABLE_BOTH)
Disables or enables one or both of the scroll bar arrows on the scroll bars associated with this wind...
void GetScrollRange(int bar, int &minPos, int &maxPos) const
Returns the minimum and maximum positions in the scroll bar.
void SetScrollRange(int bar, int minPos, int maxPos, bool redraw=true)
Sets the thumb position in the scroll bar.
void SetScrollPage(int bar, int page, bool redraw=true)
Sets the page property (SCROLLINFO::nPage) of the given scroll bar.
int GetScrollPos(int bar) const
Returns the thumb position in the scroll bar.
int SetScrollPos(int bar, int pos, bool redraw=true)
Sets the thumb position in the scroll bar.
int GetScrollPage(int bar) const
Returns the page property (SCROLLINFO::nPage) of the given scroll bar.
#define DECLARE_STREAMABLE_OWL(cls, ver)
#define DECLARE_STREAMABLE_INLINES(cls)
Object Windows Library (OWLNext Core)
Base window class TWindow definition, including HWND encapsulation.