BCGControlBar Pro for MFC
virtual BOOL CBCGPEditCtrl::OnUndo ( BOOL  bSetCaret = TRUE,
BOOL  bRedraw = TRUE 
)
virtual

Performs the next undo action.

Returns
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.

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