L_LTANN_API L_INT L_AnnAddUndoNode(hObject);
Manually adds an undo node to the automation object.
Handle to the automation object.
|SUCCESS||The function was successful.|
|< 1||An error occurred. Refer to Return Codes.|
This function allows you to programmatically add a node to the undo stack maintained by the automation object
hObject. This function can only be called for automation objects.
This function should be called before making any changes programmatically to the objects inside the container linked to the automation object. That way, these changes can be reversed using the Undo menu brought up by the automation or by calling L_AnnUndo.
The number of actions that can be undone should be set with L_AnnSetUndoDepth before calling this function.
Calling L_AnnSetAutoUndoEnable(FALSE) disables the undo mechanism of the automation object. Therefore the automation object cannot change the undo stack until the undo mechanism is enabled by calling L_AnnSetAutoUndoEnable(TRUE).
ERROR_UNDO_DISABLED will be returned if the undo has been disabled by calling L_AnnSetAutoUndoEnable(hObject, FALSE).
Basically, the process is as follows:
Call L_AnnSetUndoDepth to set the number of undo actions that can take place.
Call L_AnnAddUndoNode to add an undo node to the automation object.
Disable the undo feature by calling L_AnnSetAutoUndoEnable(FALSE).
Perform the operations to be combined into one undo.
Re-enable the undo feature by calling L_AnnSetAutoUndoEnable(TRUE).
Required DLLs and Libraries
For an example, refer to L_AnnSetAutoDefaults.
Medical Web Viewer .NET
.NET, Java, Android, and iOS/macOS Assemblies
C API/C++ Class Libraries