This documentation is archived and is not being maintained.


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.

void Cut( );

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);
© 2016 Microsoft