BCGControlBar Pro for MFC
virtual BOOL CBCGPEditCtrl::CanUndo ( ) const
virtual

Tells whether an undo operation is available or not.

Returns
TRUE if an undo operation is available; otherwise FALSE.

Call this member function to determine whether an undo operation is available or not. Undo operations are available if the undo buffer is not empty and the current position in the undo buffer is not at the beginning of the buffer.

m_nUndoBufferPos holds the current position in the undo buffer. m_bBOL and m_bEOL specify whether the current position is beyond the start or end of the buffer.