This documentation is archived and is not being maintained.


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 Windows SDK.

// Undo the last operation, if possible. 
if (m_myRichEditCtrl.CanUndo())

Header: afxcmn.h