19 SCROLLINFO FlatSB_GetScrollInfo_(
const TWindow* w,
int bar,
uint mask = SIF_ALL)
22 SCROLLINFO i = {
sizeof(SCROLLINFO), mask};
23 bool r = FlatSB_GetScrollInfo(w->GetHandle(), bar, &i);
28 int FlatSB_SetScrollInfo_(
const TWindow* w,
int bar, SCROLLINFO& i,
bool redraw)
31 return FlatSB_SetScrollInfo(w->GetHandle(), bar, &i, redraw);
45 TScroller(window,xUnit,yUnit,xRange,yRange)
60 SCROLLINFO i = {
sizeof(SCROLLINFO), SIF_PAGE | SIF_DISABLENOSCROLL, 0, 0,
static_cast<UINT
>(page)};
61 FlatSB_SetScrollInfo_(
Window, bar, i, redraw);
68 return FlatSB_GetScrollInfo_(
Window, bar, SIF_PAGE).nPage;
76 SCROLLINFO i = FlatSB_GetScrollInfo_(
Window, bar, SIF_RANGE);
86 SCROLLINFO i = {
sizeof(SCROLLINFO), SIF_RANGE | SIF_DISABLENOSCROLL, minPos, maxPos};
87 FlatSB_SetScrollInfo_(
Window, bar, i, redraw);
95 return FlatSB_GetScrollInfo_(
Window, bar, SIF_POS).nPos;
103 SCROLLINFO i = {
sizeof(SCROLLINFO), SIF_POS | SIF_DISABLENOSCROLL, 0, 0, 0, pos};
104 return FlatSB_SetScrollInfo_(
Window, bar, i, redraw);
111 return FlatSB_GetScrollInfo_(
Window, bar, SIF_TRACKPOS).nTrackPos;
117#if OWL_PERSISTENT_STREAMS
134TFlatScroller::Streamer::Write(opstream& os)
const
#define PRECONDITION(condition)
TWindow, derived from TEventHandler and TStreamableBase, provides window-specific behavior and encaps...
ipstream, a specialized input stream derivative of pstream, is the base class for reading (extracting...
void ReadBaseObject(Base *base, ipstream &in)
void WriteBaseObject(Base *base, opstream &out)
Object Windows Library (OWLNext Core).
void InUse(const T &arg)
Handy utility to avoid compiler warnings about unused parameters.
IMPLEMENT_STREAMABLE1(TApplication, TModule)
Base window class TWindow definition, including HWND encapsulation.