Encapsulates a window handle.
More...
#include <Window.h>
|
|
void | SetHandle (HWND handle) |
| | Set a window-handle to an expected unsetted Window object. If the Window object was already set, an exception is raised. This method is expected to be called inside a window-message-processing function which controls binding between a window-object and a window-handle.
|
| |
|
void | UnsetHandle () |
| | Unset the window-handle. This method is expected to be called inside a window-message-processing function which controls binding between a window-object and a window-handle.
|
| |
Encapsulates a window handle.
| void Window::Enable |
( |
bool |
enable | ) |
|
Encapsulates a call to EnableWindow.
- Parameters
-
| Indicates | whether to enable or disable the window. |
| RECT Window::GetClientRect |
( |
| ) |
|
Encapsulates a call to GetClientRect.
- Returns
- The client rect area.
| HWND Window::GetDialogItem |
( |
int |
id | ) |
const |
Encapsulates a call to GetDlgItem.
- Parameters
-
- Returns
- Control handle.
| HINSTANCE Window::GetProcessHandle |
( |
| ) |
const |
Get the process handle (HINSTANCE) where the encapsulated handle window belongs to.
- Returns
- The process handle.
| bool Window::InvalidateRect |
( |
bool |
erase | ) |
|
Encapsulates a call to InvalidateRect with lpRect to NULL.
- Parameters
-
| erase | Indicates the invalidated area should be erased (using the window class brush) before be repainted. |
- Returns
- Indicates if the method call was successful.
| bool Window::InvalidateRect |
( |
const RECT & |
rect, |
|
|
bool |
erase |
|
) |
| |
Encapsulates a call to InvalidateRect.
- Parameters
-
| rect | Area to be invalidated. |
| erase | Indicates the invalidated area should be erased (using the window class brush) before be repainted. |
- Returns
- Indicates if the method call was successful.
| bool Window::IsEnabled |
( |
| ) |
|
Encapsulates a call to IsWindowEnabled.
- Returns
- Indicates if the window is enabled.
| void Window::SetClassCursor |
( |
HCURSOR |
hcursor | ) |
|
Encapsulates a call to SetClassLong with index GCL_HCURSOR.
- Parameters
-
| hcursor | The cursor to be set.
|
| void Window::SetText |
( |
LPCWSTR |
title | ) |
|
Encapsulates a call to SetWindowText.
- Parameters
-
| title | The window title to be set. |
| bool Window::Show |
( |
int |
nCmdShow | ) |
const |
Encapsulates a call to ShowWindow.
- Parameters
-
| nCmdShow | Indicates how the window is to be shown. |
- Returns
- Indicates if the window was previously visible.
The documentation for this class was generated from the following files:
- Sowl/Windows/Window.h
- Sowl/Windows/Window.cpp