-
Notifications
You must be signed in to change notification settings - Fork 56
MTY_WMsgFunc
Function called to add custom processing to window messages.
This function is called before any internal processing, and if shouldReturn
is set to true
, no internal handling of the message will take place. This may affect internal state tracking for certain message types.
typedef intptr_t (*MTY_WMsgFunc)(
MTY_App * app,
MTY_Window window,
void * hwnd,
uint32_t msg,
intptr_t wparam,
uintptr_t lparam,
bool * shouldReturn,
void * opaque
);
app
(MTY_App *
)
The MTY_App
.
window
(MTY_Window
)
The MTY_Window
associated with the message.
hwnd
(void *
)
HWND hwnd
value passed as the first argument to the WNDPROC
callback.
msg
(uint32_t
)
UINT uMsg
value passed as the second argument to the WNDPROC
callback.
wparam
(intptr_t
)
WPARAM wParam
value passed as the third argument to the WNDPROC
callback.
lparam
(uintptr_t
)
LPARAM lParam
value passed as the fourth argument to the WNDPROC
callback.
shouldReturn
(bool *
)
If set to true
, no internal processing of this message will take place and the return value from this callback will be returned by the internal WNDPROC
callback.
opaque
(void *
)
Pointer set via MTY_AppCreate
.
intptr_t
Function called to add custom processing to window messages.