WinXRegOnKeyDown


WinXRegOnKeyDown (hWnd, FUNCADDR onKeyDown)

Registers the onKeyDown callback function.

Parameter Description
hWnd The handle to the window to register the onKeyDown callback for
FUNCADDR onKeyDown The address of the onKeyDown callback

Returns

$$TRUE on success or $$FALSE on fail

Remarks

Once registered, the onKeyDown callback will be called whenever a key is pressed

Examples

'register the onKeyDown callback
WinXRegKeyDown (#hMain, &onKeyDown())

Related Links

onKeyDown
onKeyUp
onChar
WinXIsKeyDown