BCGControlBar Pro for MFC
virtual BOOL CBCGPEditCtrl::Cut ( )
virtual

Deletes (cuts) the current selection (if any) in the edit control and copies the deleted text to the Clipboard in CF_TEXT format.

Returns
TRUE if the cut operation succeeded; otherwise FALSE.

Call this function to delete (cut) the current selection (if any) in the edit control and copy the deleted text to the Clipboard in CF_TEXT format.

The deletion performed by Cut can be undone by calling the OnUndo() member function.

To delete the current selection without placing the deleted text into the Clipboard, call the Clear() member function.

The function returns FALSE if the cut operation is disabled (IsCutEnabled() returns FALSE).