A Window with its own window procedure.
More...
#include <WindowWithMessages.h>
|
| static LRESULT | BindAndProcess (HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam, UINT bindingMessage, const std::function< WindowWithMessages *(LPARAM)> &extractWindowPointer) |
| | Handles the binding between a Window-object and a window-handle. More...
|
| |
|
|
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.
|
| |
| LRESULT WindowWithMessages::BindAndProcess |
( |
HWND |
hwnd, |
|
|
UINT |
uMsg, |
|
|
WPARAM |
wParam, |
|
|
LPARAM |
lParam, |
|
|
UINT |
bindingMessage, |
|
|
const std::function< WindowWithMessages *(LPARAM)> & |
extractWindowPointer |
|
) |
| |
|
static |
Handles the binding between a Window-object and a window-handle.
- Parameters
-
| hwnd | |
| uMsg | |
| wParam | |
| lParam | |
| bindingMessage | The message where binding has to be set. Binding is always unset on WM_NCDESTROY. |
| extractWindowPointer | A function that knows how extract a pointer to a Window-object passed as creation-parameter when the window was created. |
- Returns
The documentation for this class was generated from the following files: