9#if !defined(OWL_UPDOWN_H)
13#if defined(BI_HAS_PRAGMA_ONCE)
44 int x,
int y,
int w,
int h,
55 void GetRange(
int& lower,
int& upper)
const;
88 DECLARE_RESPONSE_TABLE(
TUpDown);
113 return reinterpret_cast<HWND
>(
CONST_CAST(
TUpDown*,
this)->SendMessage(UDM_GETBUDDY));
#define PRECONDITION(condition)
TControl(TWindow *parent, int id, LPCTSTR title, int x, int y, int w, int h, TModule *module=nullptr)
Invokes TWindow's constructor, passing it parent (parent window), title (caption text),...
ObjectWindows dynamic-link libraries (DLLs) construct an instance of TModule, which acts as an object...
TUDAccel is a very thin wrapper for the UDACCEL structure which contains information about updown acc...
uint32 GetRange() const
Retrieves the minimum and maximum range of the underlying up-down control.
int GetBase() const
Retrieves the current radix base of the underlying up-down control.
HWND SetBuddy(HWND hBuddy)
Sets the buddy window of the underlying up-down control.
void EvVScroll(uint, uint, HWND)
Keeps TWindow from rerouting these. Must be left as is for updown control.
auto GetWindowClassName() -> TWindowClassName override
Returns the ClassName of the underlying control.
TUpDown(TWindow *parent, int id, int x, int y, int w, int h, TWindow *buddy=0, TModule *module=0)
Constructor of UpDown control.
void SetRange(int lower, int upper)
Sets the minimum and maximum positions of the up-down control.
void EvHScroll(uint, uint, HWND)
Keeps TWindow from rerouting these; must be left as is for updown control.
int SetBase(int base)
Sets the radix of the underlying up-down control.
TResult SetPos(int pos)
Sets the current position of the underlying up-down control.
HWND GetBuddy() const
Retrieves handle of buddy window of underlying up-down control.
int GetAccel(int count, TUDAccel *accels) const
Retrieves acceleration information for the underlying up-down control.
bool SetAccel(int count, const TUDAccel *accels)
Set the acceleration of the underlying up-down control.
int32 GetPos() const
Returns current position of underlying up-down control.
auto PerformCreate() -> THandle override
Overriden to invoke the OS' 'CreateUpDownControl' method on systems that use the native implementatio...
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 classes for CommonControl encapsulation.
Definition of class TControl.
Object Windows Library (OWLNext Core).
uint16 HiUint16(LRESULT r)
LPARAM TParam2
Second parameter type.
WPARAM TParam1
First parameter type.
uint16 LoUint16(LRESULT r)
TParam2 MkParam2(const T1 &lo, const T2 &hi)
LRESULT TResult
Result type.
#define CONST_CAST(targetType, object)