BCGSoft Professional Editor for MFC
BOOL CBCGPEditCtrl::DeleteSelectedText ( BOOL  bRedraw = TRUE,
BOOL  bCopyToClipboard = FALSE,
BOOL  bForceNextUndo = FALSE 
)

Deletes the selected text from the edit control.

Returns
Nonzero if successful; otherwise 0.

This function is called by the edit control in some situations (for example, when there is a selected text and the user types a character, from Cut() and Clear() methods and so on).

Parameters
bRedrawSpecifies whether the control should be redrawn after the text has been deleted.
bCopyToClipboardSpecifies whether the deleted text should be copied to the Clipboard.
bForceNextUndoSpecifies whether the undo action, created as a result of deletion, should be used as a complex undo action in sequence.