BOOL CanUndo( ) const;
Return Value
Nonzero if the last edit operation can be undone by a call to the Undo member function; 0 if it cannot be undone.
Remarks
Call this function to determine if the last editing operation can be undone.
For more information, see EM_CANUNDO in the Win32 documentation.
Example
// The pointer to my rich edit control.
extern CRichEditCtrl* pmyRichEditCtrl;
// Undo the last operation, if possible.
if (pmyRichEditCtrl->CanUndo())
pmyRichEditCtrl->Undo();
CRichEditCtrl Overview | Class Members | Hierarchy Chart
See Also CRichEditCtrl::Undo, CRichEditCtrl::EmptyUndoBuffer