class WindowPtr
A small class that wraps a native window handle and provides basic functions to manipulate the window.
Methods
AlwaysOnTop (const int) | Enables or disables 'always on top' for the window. |
BringToTop () | Moves the window to the top of the Z-order. |
Close () | Sends a CLOSE message to the window. |
Quit () | Sends a QUIT message to the window. |
SetWindowRect (const int, const int, const int, const int) | Sets the window's position and size. |
ShowWindow (const int) | Changes the window's show state. |
Properties
int Height () | Returns the height of the window. |
int IsMaximized () | Returns true if the window is currently maximized. |
int IsMinimized () | Returns true if the window is currently minimized. |
int IsValid () | Returns true if this window handle is valid. |
int IsVisible () | Returns true if the window is currently visible, false if it is hidden. |
int Left () | Returns the coordinate of the window's left edge. |
int Top () | Returns the coordinate of the windows's top edge. |
int Width () | Returns the width of the window. |
Reference
method AlwaysOnTop (const int flag) |
Enables or disables 'always on top' for the window. |
method BringToTop () |
Moves the window to the top of the Z-order. |
method Close () |
Sends a CLOSE message to the window. |
method Quit () |
Sends a QUIT message to the window. This should only be sent to an application's main window. |
method SetWindowRect (const int x, const int y, const int w, const int h) |
Sets the window's position and size. |
method ShowWindow (const int state) |
Changes the window's show state. Available states are: Show, Hide, Maximize, Minimize, Restore. |
accessor int Height () |
Returns the height of the window. |
accessor int IsMaximized () |
Returns true if the window is currently maximized. |
accessor int IsMinimized () |
Returns true if the window is currently minimized. |
accessor int IsValid () |
Returns true if this window handle is valid. |
accessor int IsVisible () |
Returns true if the window is currently visible, false if it is hidden. |
accessor int Left () |
Returns the coordinate of the window's left edge. |
accessor int Top () |
Returns the coordinate of the windows's top edge. |
accessor int Width () |
Returns the width of the window. |