onPaint (Callback)


onPaint (hWnd, hDC)

This is a callback function used to implement custom painting of the window.

Parameter Description
hWnd Handle to the window to draw
hDC Handle to the device context to do the drawing on

Returns

0

Remarks

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

Examples

FUNCTION onPaint(hWnd, hDC)

'Draw some text
TextOutA (hDC, 10, 10, &"Hello World", LEN("Hello World"))

END FUNCTION

Related Links

WinXRegOnPaint