#include "ltaut.h"
L_LTAUT_API L_INT L_AutRedo(pAutomation, dwFlags)
pAUTOMATIONHANDLE pAutomation; |
pointer to an automation handle |
L_UINT32 dwFlags; |
reserved |
Repeats that last automation operation performed in the active automation container.
Parameter |
Description |
pAutomation |
Pointer to an automation handle. |
dwFlags |
Reserved for future use. Must be 0. |
SUCCESS |
The function was successful. |
< 1 |
An error occurred. Refer to Return Codes. |
This function can be called for each process "undone" in the active automation container by calling L_AutUndo. For example, if L_AutUndo has been called three times, to undo three processes, then calling L_AutRedo can redo those three processes. The first call to L_AutRedo will redo the first process; the second call will redo the second process and the third call will redo the third process.
Required DLLs and Libraries
LTAUT For a listing of the exact DLLs and Libraries needed, based on the toolkit version, refer to Files To Be Included With Your Application |
Functions: |
L_AutCanRedo, L_AutUndo, L_AutSetUndoLevel, L_AutGetUndoLevel |
Topics: |
This example shows how to redo the last automation operation.
L_INT AutRedoExample(pAUTOMATIONHANDLE pAutomation)
{
L_INT nRet;
nRet = L_AutIsValid ( pAutomation );
if ( SUCCESS == nRet ) /* check the validity of the automation handle */
{
L_BOOL fCanRedo ;
/* query the ability of redoing */
nRet = L_AutCanRedo ( pAutomation, &fCanRedo ) ;
if(nRet != SUCCESS)
return nRet;
if ( fCanRedo )
{
/* redo the last automation operation */
nRet = L_AutRedo ( pAutomation, 0 ) ;
if(nRet != SUCCESS)
return nRet;
}
return SUCCESS ;
}
else
{
return nRet ;
}
}