BCGSuite for MFC
virtual BOOL CBCGPEditCtrl::OnDelete ( BOOL  bRedraw = FALSE,
BOOL  bForceNextUndo = FALSE 
)
virtual

Deletes a symbol at the current position or selected text.

Returns
Nonzero if the function succeeds; otherwise 0.

OnDelete is called by the edit control when the user strikes VK_DELETE or VK_BACK keys and deletes a symbol at the current position.

If there is a selection, it deletes selected text instead.

Parameters
bRedrawIf TRUE, the edit control should be redrawn.
bForceNextUndoIf TRUE, the caused undo action is treated as a sequence of undo actions (for example, text replace).