10#if !defined(OWL_SLIDER_H)
14#if defined(BI_HAS_PRAGMA_ONCE)
21#include <owl/slider.rh>
66 void GetRange(
int& minValue,
int& maxValue)
const override;
68 void SetRange(
int minValue,
int maxValue,
bool redraw =
true)
override;
70 void SetPosition(
int thumbPos,
bool redraw)
override;
75 void SetRuler(
int ticGap,
bool snap =
false);
76 void SetRuler(
int tics[],
int ticCount,
bool snap =
false);
77 void SetSel(
int start,
int end,
bool redraw =
true);
78 void GetSel(
int& start,
int& end);
84 void SetBuddy(HWND buddy,
bool loc=
true);
126 DECLARE_RESPONSE_TABLE(
TSlider);
127 DECLARE_ABSTRACT_STREAMABLE_OWL(
TSlider, 2);
195 minValue = Min; maxValue = Max;
The GDI Brush class is derived from TGdiObject.
Class wrapper for management of color values.
TDC is the root class for GDI DC wrappers.
Derived from TSlider, THSlider provides implementation details for horizontal sliders.
THSlider(TWindow *parent, int id, int x, int y, int w, int h, TResId thumbResId=IDB_HSLIDERTHUMB, TModule *=0)
Constructs a slider object with a default bitmap resource ID of IDB_HSLIDERTHUMB for the thumb knob.
ObjectWindows dynamic-link libraries (DLLs) construct an instance of TModule, which acts as an object...
TRect is a mathematical class derived from tagRect.
TRegion, derived from TGdiObject, represents GDI abstract shapes or regions.
An abstract base class derived from TScrollBar, TSlider defines the basic behavior of sliders (contro...
void SetRange(int minValue, int maxValue, bool redraw=true) override
Checks and sets the slider range.
void SetSel(int start, int end, bool redraw=true)
Set a selection range for the slider.
void SetBuddy(HWND buddy, bool loc=true)
HWND GetBuddy(bool loc=true) const
void SetPosition(int thumbPos)
Sets the position of the thumb and always redraws.
void GetSel(int &start, int &end)
TSlider(TWindow *parent, int id, int x, int y, int w, int h, TResId thumbResId, TModule *module=0)
Constructs a slider object setting Pos and ThumbRgn to 0, TicGap to Range divided by 10,...
auto GetPosition() const -> int override
Returns the slider's current thumb position.
void GetRange(int &minValue, int &maxValue) const override
Returns the end values of the present range of slider thumb positions in minValue and maxValue.
void EvVScroll(uint scrollCode, uint thumbPos, HWND hWndCtl)
Overrides the handling in TScrollBar.
int SnapPos(int pos)
Constrains pos so it is in the range from Min to Max and (if snapping is enabled) performs snapping b...
void SetRuler(int ticGap, bool snap=false)
Sets the slider's ruler.
void SetupWindow() override
Calls TScrollBar::SetupWindow and SetupThumbRgn to set up the slider window.
auto GetWindowClassName() -> TWindowClassName override
Returns the windows system class name that this slider is basing itself on.
void SetTooltips(HWND tooltip)
void EvHScroll(uint scrollCode, uint thumbPos, HWND hWndCtl)
Overrides the handling in TScrollBar.
Derived from TSlider, TVSlider provides implementation details for vertical sliders.
TVSlider(TWindow *parent, int id, int x, int y, int w, int h, TResId thumbResId=IDB_VSLIDERTHUMB, TModule *=0)
Constructs a vertical slider object with a default bitmap resource ID of IDB_VSLIDERTHUMB for the thu...
Type-safe encapsulation of a Windows class name, a union between ATOM and LPCTSTR.
TWindow, derived from TEventHandler and TStreamableBase, provides window-specific behavior and encaps...
TResult SendMessage(TMsgId, TParam1=0, TParam2=0) const
Sends a message (msg) to a specified window or windows.
HWND THandle
TWindow encapsulates an HWND.
Definition of windowing system color classes.
Definition of classes for CommonControl encapsulation.
#define DECLARE_STREAMABLE_OWL(cls, ver)
#define DECLARE_STREAMABLE_INLINES(cls)
Object Windows Library (OWLNext Core).
LPARAM TParam2
Second parameter type.
WPARAM TParam1
First parameter type.
#define CONST_CAST(targetType, object)