Deletes (cuts) the current selection, if any, in the combo-box edit control and copies the deleted text onto the Clipboard in CF_TEXT format.
To delete the current selection without placing the deleted text onto the Clipboard, call the Clear member function.
// The pointer to my combo box. extern CComboBox* pmyComboBox; // Delete all of the text from the combo box's edit control and copy it // to the clipboard. pmyComboBox->SetEditSel(0, -1); pmyComboBox->Cut();