lcDrwUndoRecord Home

Saves operations in Undo buffer.

 BOOL lcDrwUndoRecord (
   HANDLE hDrw,
   int Mode
 );

Parameters
hDrw
  Handle to a drawing object.
Mode
  Can be one of the following values:

Mode Meaning
LC_UNDO_BEGIN Start to write operations into Undo buffer
LC_UNDO_END Stop to write operations into Undo buffer
LC_UNDO_CLEAR Clears Undo buffer.
This command works only outside of LC_UNDO_BEGIN - LC_UNDO_END block

Return Value

  If the function succeeds, the return value is nonzero (TRUE).

See Also

  lcDrwUndo


Code sample:
  lcDrwUndoRecord( hLcDrw, LC_UNDO_BEGIN );
  lcPropPutFloat( hLine, LC_PROP_LINE_X0, X0 );
  lcPropPutFloat( hLine, LC_PROP_LINE_Y0, Y0 );
  lcPropPutFloat( hLine, LC_PROP_LINE_X1, X1 );
  lcPropPutFloat( hLine, LC_PROP_LINE_Y1, Y1 );
  lcDrwUndoRecord( hLcDrw, LC_UNDO_END );