WinXUndo


WinXUndo (hWnd, id)

Undoes a drawing operation.

Parameter Description
hWnd The handle to the window the drawing action was performed on
id The id returned by the drawing function.

Returns

$$TRUE on success or $$FALSE on fail

Remarks

The results of this function are not visible untill you call WinXUpdate

Examples

'Draw a line
idLine = WinXDrawLine (#hMain, hPen, 0, 0, 60, 60)
WinXUpdate(#hMain)

...

'undo the drawing operation
WinXUndo (#hMain, idLine)
WinXUpdate(#hMain)

Related Links

WinXUpdate