Wrap parameters of WndProc in a struct. Can be used for any message.
More...
#include <Message.h>
|
HWND | hwnd |
|
LPARAM | lp |
|
UINT | message |
|
WindowBase * | messageHandler |
|
LRESULT | result |
|
bool | resultSet |
|
WPARAM | wp |
|
Wrap parameters of WndProc in a struct. Can be used for any message.
LRESULT neo::Message::Default |
( |
| ) |
|
|
inline |
Calls the default window procedure.
void neo::Message::Init |
( |
HWND |
pHwnd, |
|
|
UINT |
pMessage, |
|
|
WPARAM |
pWP, |
|
|
LPARAM |
pLP |
|
) |
| |
|
inline |
The reason to have an Init() function besides the ctor is to make subclassing easier (we don't need to override ctor's)
void neo::Message::Result |
( |
LRESULT |
res | ) |
|
|
inline |
By calling Result(), the message is marked as finished and will not be further processed.
- Parameters
-
res | The value that the window procedure will return for this message. |
- Note
- If this function is used, the DefWindowProc will not be called, which can be useful if the default implementation needs to be stopped.
void neo::Message::ResultDefault |
( |
| ) |
|
|
inline |
The documentation for this struct was generated from the following files:
- include/neo/Message.h
- include/neo/Message.inl