27 int x,
int y,
int w,
int h,
40 MarqueeUpdateTime = 0;
59 MarqueeUpdateTime = 0;
134 else if (
value < Min)
139 if (
value != Value) {
158 if (
delta + Value > Max)
161 else if (
delta + Value < Min)
184 if (Value + Step < Max)
#define PRECONDITION(condition)
Class wrapper for management of color values.
static const TColor None
not-a-color
TControl unifies its derived control classes, such as TScrollBar, TControlGadget, and TButton.
ObjectWindows dynamic-link libraries (DLLs) construct an instance of TModule, which acts as an object...
void StepIt()
Adjusts the active gauge value by the Step increment.
void DeltaValue(int delta)
Changes the value of the gauge by the given delta.
void SetStep(int step)
Sets the Step amount of the gauge for StepIt operations.
void SetBkgndColor(const TColor &color)
virtual auto GetWindowClassName() -> TWindowClassName
Returns the class name of the native control.
void SetMarquee(bool enable, uint timeBetweenUpdates=0)
void SetupWindow()
If a system control is being used, updates it to match our member settings.
void SetRange(int minValue, int maxValue)
Sets the Min and Max data members to minValue and maxValue values returned by the constructor.
TProgressBar(TWindow *parent, int id, int x, int y, int w, int h=0, TModule *module=0)
Simplified constructor for a TProgressBar object.
void SetColor(const TColor &color)
Sets the BarColor data member to the value specified in color.
void SetValue(int value)
Set the value of the gauge.
auto SetState(uint) -> uint
Sets the state of the progress bar.
TUIMetric encapsulates the GetSystemMetric() API.
static const TUIMetric CxBorder
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...
bool ModifyStyle(uint32 offBits, uint32 onBits, uint swpFlags=0)
Modifies the style bits of the window.
TResult SendMessage(TMsgId, TParam1=0, TParam2=0) const
Sends a message (msg) to a specified window or windows.
virtual void SetupWindow()
Performs setup following creation of an associated MS-Windows window.
HWND GetHandle() const
Returns the handle of the window.
Definition of classes for CommonControl encapsulation.
Object Windows Library (OWLNext Core)
void InitializeCommonControls(uint controlFlags)
Wrapper for the Windows API function InitCommmonControlsEx.
LPARAM TParam2
Second parameter type.
TParam2 MkParam2(const T1 &lo, const T2 &hi)
Encapsulation for Windows ProgressBar common control.
Definition of TUIMetric, a UI metrics provider class.