13 explicit Window(HWND hwnd);
31 HWND GetHandle()
const;
34 bool Show(
int nCmdShow)
const;
RECT GetClientRect()
Encapsulates a call to GetClientRect.
Definition: Window.cpp:132
bool InvalidateRect(bool erase)
Encapsulates a call to InvalidateRect with lpRect to NULL.
Definition: Window.cpp:116
void Enable(bool enable)
Encapsulates a call to EnableWindow.
Definition: Window.cpp:87
bool Show(int nCmdShow) const
Encapsulates a call to ShowWindow.
Definition: Window.cpp:142
HWND GetDialogItem(int id) const
Encapsulates a call to GetDlgItem.
Definition: Window.cpp:80
HINSTANCE GetProcessHandle() const
Get the process handle (HINSTANCE) where the encapsulated handle window belongs to...
Definition: Window.cpp:72
bool IsEnabled()
Encapsulates a call to IsWindowEnabled.
Definition: Window.cpp:94
void UnsetHandle()
Unset the window-handle. This method is expected to be called inside a window-message-processing fun...
Definition: Window.cpp:60
void SetHandle(HWND handle)
Set a window-handle to an expected unsetted Window object. If the Window object was already set...
Definition: Window.cpp:49
void Destroy()
Release the encapsulated HWND if it is valid.
Definition: Window.cpp:29
void SetClassCursor(HCURSOR hcursor)
Encapsulates a call to SetClassLong with index GCL_HCURSOR.
Definition: Window.cpp:101
~Window()
Call Destroy().
Definition: Window.cpp:23
void SetText(LPCWSTR title)
Encapsulates a call to SetWindowText.
Definition: Window.cpp:108
Encapsulates a window handle.
Definition: Window.h:8