HeaderPane
Main
Hide
Share Link
Print

Paste

Inserts the clipboard contents in the edit control portion.

C

void SftBox_Paste(HWND hwndCtl);

C++

void CSftBox::Paste();

Parameters

hwndCtl

The window handle of the combo box control.

Returns

None.

Comments

The Paste function inserts the text contents of the clipboard in the edit control portion of a simple or dropdown combo box control.

The text is inserted at the position of the caret (insertion point). If text is selected in the edit control portion (see GetEditSel, SetEditSel), it is replaced by the clipboard contents. No text is inserted if the edit control portion is read-only (see SetReadOnly).

A dropdown list combo box does not have an edit control portion, so Paste has no effect.

In C, SftBox_Paste is implemented as a macro which sends a WM_PASTE message to the combo box.

See Also C/C++ API | Categories | Notifications


Last Updated 11/21/2026 - (email)
© 2026 Softel vdm, Inc.