WinXRegMessageHandler


WinXRegMessageHandler (hWnd, msg, FUNCADDR msgHandler)

Registers a callback function to handle messages.

Parameter Description
hWnd  The handle to the window to register the callback for
msg The message to process
FUNCADDR msgHandler  The address of the handleMessage callback function

Returns

$$TRUE on success or $$FALSE on fail

Remarks

If you register a message handler for a message that is normally processed by WinX, WinX will call your handler first and then perform the default functionality.

Examples

'Register a callback to process $$WM_NOTIFY messages
WinXRegMessageHandler (#hMain, $$WM_NOTIFY, &msgHandler())

Related Links

handleMessage (Callback)