LRasterPaintWindow::Undo

Summary

Undoes the last automation operation performed in the class object's container.

Syntax

#include "Ltwrappr.h"

L_INT LRasterPaintWindow::Undo()

Returns

Value Meaning
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

See Also

Functions

Example

L_INT LRasterPaintWindow_UndoExample(LRasterPaintWindow * pLRasterPntWnd)  
{ 
   L_INT nRet; 
 
   if(pLRasterPntWnd->CanUndo ()) 
   { 
      nRet =  pLRasterPntWnd->Undo(); 
      if(nRet != SUCCESS) 
         return nRet; 
   } 
   else 
      return FAILURE; 
   return  SUCCESS; 
} 
Help Version 22.0.2022.12.7
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.

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