Copies text to the clipboard and removes it from the combo box control.
C
void SftBox_Cut(HWND hwndCtl);
C++
void CSftBox::Cut();
hwndCtl
The window handle of the combo box control.
None.
The Cut function copies text of the combo box control to the clipboard and removes it.
In a simple or dropdown combo box, the text currently selected in the edit control portion is copied to the clipboard and deleted from the edit control portion (see GetEditSel, SetEditSel).
In a dropdown list combo box, the cell text of the currently selected item is copied to the clipboard and the current selection is removed, so no item is selected. The cell in the first displayed column is used. The item itself is not deleted from the combo box.
In C, SftBox_Cut is implemented as a macro which sends a WM_CUT message to the combo box.
See Also C/C++ API | Categories | Notifications