Поделиться через


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

Пример

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

Требования

Header: afxcmn.h

См. также

Основные понятия

CRichEditCtrl Class

CRichEditCtrl Members

Hierarchy Chart

CRichEditCtrl::Undo

CRichEditCtrl::EmptyUndoBuffer

CRichEditCtrl::CanRedo

CRichEditCtrl::GetRedoName