LAutomation::Undo

Summary

Undoes the last automation operation performed in the active automation container.

Syntax

#include "ltwrappr.h"

L_INT LAutomation::Undo (dwFlags=0);

Parameters

L_UINT32 dwFlags

Reserved for future use. Must be 0.

Returns

Value Meaning
SUCCESS The function was successful.
< 1 An error occurred. Refer to Return Codes.

Comments

LAutomation::Undo must be called at least once in order to perform a "redo" using LAutomation::Redo.

To determine the current undo level call LAutomation::GetUndoLevel.

To change the undo level call LAutomation::SetUndoLevel.

To determine whether an automation operation can be undone, call LAutomation::CanUndo.

For information about grouping multiple operations into a single undo process, refer to LAutomation::AddUndoNode.

Required DLLs and Libraries

See Also

Functions

Topics

Example

This example shows how to undo the last automation operation.

L_INT LAutomation_UndoExample(LAutomation &lauto) 
{ 
   L_INT nRet; 
 
   nRet = lauto.IsValid (); 
   if ( nRet == SUCCESS ) /* check the validity of the automation handle */ 
 
   { 
 
      L_BOOL fCanUndo ; 
 
      /* Query the ability of undoing */ 
 
      fCanUndo = lauto.CanUndo () ; 
 
      if ( fCanUndo ) 
 
      { 
 
         /* undo the last automation operation */ 
 
         nRet = lauto.Undo () ; 
         if(nRet != SUCCESS) 
            return nRet; 
 
      } 
 
   } 
 
   else 
 
   { 
 
      return nRet; 
 
   } 
 
      return SUCCESS ; 
 
} 

Help Version 23.0.2024.2.29
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2024 LEAD Technologies, Inc. All Rights Reserved.

LEADTOOLS Container and Automation C++ Class Library Help
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.