Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
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.

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);

Community Additions

© 2015 Microsoft