BCGSoft Professional Editor for MFC
virtual BOOL CBCGPEditCtrl::OnUndo ( BOOL  bSetCaret = TRUE,
BOOL  bRedraw = TRUE 

Performs the next undo action.

Nonzero if the function succeeds; otherwise 0.

The function fails if the undo buffer is empty or the current position in the buffer is NULL and m_bBOL is TRUE.

The function can call itself recursively if the next undo action has m_bForceNextUnto flag set to TRUE.

bSetCaretSpecifies whether the caret should be set to the position of undo action.
bRedrawSpecifies whether to redraw the edit control after undo action.