WM_PASTE

2.x

WM_PASTE
wParam = 0;     /* not used, must be zero */
lParam = 0L;    /* not used, must be zero */

An application sends the WM_PASTE message to an edit control or combo box to insert the data from the clipboard into the edit control at the current cursor position. Data is inserted only if the clipboard contains data in CF_TEXT format.

Parameters

This message has no parameters.

Return Value

The return value is nonzero if this message is sent to an edit control or a combo box.

Example

This example pastes data from the clipboard to an edit control:

SendDlgItemMessage(hdlg, IDD_MYEDITCONTROL, WM_PASTE, 0, 0L);

See Also

WM_CLEAR, WM_COPY, WM_CUT