LRasterPaintWindow::Undo
#include "Ltwrappr.h"
L_INT LRasterPaintWindow::Undo()
Undoes the last automation operation performed in the class object's container.
Returns
SUCCESS |
The function was successful. |
< 1 |
An error occurred. Refer to Return Codes. |
Comments
LRasterPaintWindow::Undo must be called at least once in order to perform a "redo" using LRasterPaintWindow::Redo.
To determine whether an automation operation can be undone, call LRasterPaintWindow::CanUndo.
LRasterPaintWindow::Initialize must be called before calling this function.
Required DLLs and Libraries
LTPNT For a listing of the exact DLLs and Libraries needed, based on the toolkit version, refer to Files To Be Included With Your Application |
See Also
Functions: |
LRasterPaintWindow::CanUndo, LRasterPaintWindow::CanRedo, Class Members |
Example
L_INT MyFunction(LRasterPaintWindow * pLRasterPntWnd)
{
L_INT nRetCode;
if(pLRasterPntWnd->CanUndo ())
{
nRetCode = pLRasterPntWnd->Undo();
if(nRetCode == SUCCESS)
return SUCCESS;
}
return FAILURE;
}