Copies text to the clipboard.
C
void SftBox_Copy(HWND hwndCtl);
C++
void CSftBox::Copy();
hwndCtl
The window handle of the combo box control.
None.
The Copy function copies text of the combo box control to the clipboard.
In a simple or dropdown combo box, the text currently selected in the edit control portion is copied to the clipboard (see GetEditSel, SetEditSel).
In a dropdown list combo box, the cell text of the currently selected item is copied to the clipboard. The cell in the first displayed column is used. If no item is selected, an empty string is copied to the clipboard.
In C, SftBox_Copy is implemented as a macro which sends a WM_COPY message to the combo box.
See Also C/C++ API | Categories | Notifications