9#if !defined(OWL_SCROLLER_H)
13#if defined(BI_HAS_PRAGMA_ONCE)
24#if !defined(OWL_GEOMETRY_H)
50 long xRange,
long yRange);
54 virtual void SetUnits(
int xUnit,
int yUnit);
57 virtual void SetRange(
long xRange,
long yRange);
62 virtual void VScroll(
uint scrollEvent,
int thumbPos);
63 virtual void HScroll(
uint scrollEvent,
int thumbPos);
64 virtual void ScrollTo(
long x,
long y);
82 virtual void SetScrollPage(
int bar,
int page,
bool redraw =
true);
84 virtual void GetScrollRange(
int bar,
int& minPos,
int& maxPos)
const;
85 virtual void SetScrollRange(
int bar,
int minPos,
int maxPos,
bool redraw =
true);
87 virtual int SetScrollPos(
int bar,
int pos,
bool redraw =
true);
141 return (x + xExt >
XPos) && (y + yExt >
YPos) &&
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.