60 Attr.H =
dib.Height();
104 Static =
new TStatic(
this, 1,
_T(
""), 0, 0, 0, 0, 0, module);
119 Gauge =
new TGauge(
this,
_T(
"%d%%"), 2, 0, 0, 0, 0,
true, 0, module);
128 lmGauge.Y.Below(PictWindow, 1);
167 int x = (
fullRect.Width() -
r.Width()) / 2;
168 int y = (
fullRect.Height() -
r.Height()) / 2;
189 CapturedMouse =
true;
201 CapturedMouse =
false;
Pseudo-GDI object Device Independent Bitmap (DIB) class.
A streamable class derived from TControl, TGauge defines the basic behavior of gauge controls.
void SetValue(int value)
Set the value of the gauge.
void SetRange(int minValue, int maxValue)
Sets the Min and Max data members to minValue and maxValue values returned by the constructor.
When specifying the layout metrics for a window, four layout constraints are needed.
Derived from TWindow, TLayoutWindow provides functionality for defining the layout metrics for a wind...
void SetChildLayoutMetrics(TWindow &child, const TLayoutMetrics &metrics)
Sets the metrics for the window and removes any existing ones.
ObjectWindows dynamic-link libraries (DLLs) construct an instance of TModule, which acts as an object...
bool PumpWaitingMessages()
The inner message loop.
This class displays a dib in a window in different ways.
TDisplayHow
How to display the bitmap within the window.
@ UpperLeft
Displays the DIB in the upper left corner of the window.
TPoint is a support class, derived from tagPOINT.
TRect is a mathematical class derived from tagRect.
This class creates a layout window that contains a TPictureWindow and optionally, a TStatic and a TGa...
uint GetTimeOut() const
Returns the number of milliseconds for the splash window to automatically close.
void SetPercentDone(int percent)
Sets the percentage done for the gauge control.
void CleanupWindow() override
Before the window closes, and if the mouse has been captured, this releases it now.
void EvTimer(uint timerId)
Handler for the timer event. Closes the window.
void SetText(LPCTSTR text)
Changes the text within the static control.
void SetupWindow() override
After the window has been created, this centers the window and makes it topmost.
bool HasStyle(TStyle) const
Determines if the splash window has a particular style.
TSplashWindow(const TDib &dib, int width, int height, int style=None, uint timeOut=0, LPCTSTR title=0, TModule *module=0)
Constructor to create a splash screen.
~TSplashWindow() override
Deletes the child controls.
auto Create() -> bool override
@ MakeGauge
Display a gauge to indicate progess.
@ MakeStatic
Display a text control.
@ ShrinkToFit
Resizes window to fit bitmap.
@ CaptureMouse
Capture mouse clicks.
TStatic * GetStatic()
Returns the static control used by the splash window.
void EvLButtonDown(uint modKeys, const TPoint &point)
If the user clicks on the splash screen and the CaptureMouse style is on, this closes the splash scre...
TGauge * GetGauge()
Returns the gauge used by the splash window.
An interface object that represents a static text interface element.
void SetText(LPCTSTR str)
Sets the static control's text to the string supplied in str.
static const TUIMetric CxScreen
static const TUIMetric CyScreen
bool SetCursor(TModule *module, TResId resId)
Sets the mouse cursor for the window, loading the given resId from the given module.
HWND SetCapture()
Sets the mouse capture to the current window.
bool KillTimer(UINT_PTR timerId)
Gets rid of the timer and removes any WM_TIMER messages from the message queue.
TApplication * GetApplication() const
Gets a pointer to the TApplication object associated with this.
bool SetWindowPos(HWND hWndInsertAfter, const TRect &rect, uint flags)
Changes the size of the window pointed to by rect.
virtual bool Create()
Creates the window interface element to be associated with this ObjectWindows interface element.
TRect GetWindowRect() const
Gets the screen coordinates of the window's rectangle.
static void ReleaseCapture()
Releases the mouse capture from this window.
TWindowAttr & GetWindowAttr()
Returns the TWindowAttr structure, which contains the window's creation attributes.
bool IsWindow() const
Returns true if an HWND is being used.
UINT_PTR SetTimer(UINT_PTR timerId, uint timeout, TIMERPROC proc=0)
Creates a timer object associated with this window.
void UpdateWindow()
Updates the client area of the specified window by immediately sending a WM_PAINT message.
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.
#define DEFINE_RESPONSE_TABLE1(cls, base)
Macro to define a response table for a class with one base.
Definition of class TGauge, a gauge control encapsulation & implementation.
Definition of abstract GDI object class and derived classes.
#define lmParent
Use to represent the parent in layout metrics.
@ lmTop
The top edge of the window.
@ lmLeft
The left edge of the window.
Definition of classes TLayoutMetrics & TLayoutWindow.
Object Windows Library (OWLNext Core)
const int PercentThreshold
Definition of class TPictureWindow.
Definition of class TSplashWindow.
Definition of class TStatic, the class for static controls and base for any control that manages simp...
int H
height of the window
uint32 Style
Contains the values that define the style, shape, and size of your window.
Definition of TUIMetric, a UI metrics provider class.