handleMessage (Callback)


handleMessage (hWnd, msg, wParam, lParam)

This is a callback function used to manually handle window messages.

Parameter Description
hWnd  The handle to the window that sent the message
msg  The message constant
wParam  The wParam of the message
lParam The lParam of the message

Returns

Depends on the message you are processing, usually 0

Remarks

This is a callback funciton. You must supply this function yourself. Register this function with WinXRegMessageHandler.

Examples

FUNCTION handleMessage (hWnd, msg, wParam, lParam)

'If you are processing several messages with one callback
'You will need to check the msg constant
SELECT CASE msg

CASE $$CUSTOMMESSAGE

'Process $$CUSTOMMESSAGE here

END SELECT

END FUNCTION

Related Links

WinXRegMessageHandler