Export (0) Print
Expand All
MFC
Expand Minimize

CRichEditCtrl::CanUndo 

Determines if the last editing operation can be undone.


BOOL CanUndo( ) const;

Nonzero if the last edit operation can be undone by a call to the Undo member function; 0 if it cannot be undone.

For more information, see EM_CANUNDO in the Platform SDK.

// The pointer to my rich edit control.
extern CRichEditCtrl* pmyRichEditCtrl;

// Undo the last operation, if possible.
if (pmyRichEditCtrl->CanUndo())
   pmyRichEditCtrl->Undo();

Community Additions

ADD
Show:
© 2014 Microsoft