|Important||This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here.|
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();