This documentation is archived and is not being maintained.
Visual Studio .NET 2003
Deletes (clears) the current selection, if any, in the edit control of the combo box.
void Clear( );
To delete the current selection and place the deleted contents onto the Clipboard, use the Cut member function.
// The pointer to my combo box. extern CComboBox* pmyComboBox; // Delete all of the text from the combo box's edit control. pmyComboBox->SetEditSel(0, -1); pmyComboBox->Clear();