windows_programming_notes.nbk: Home | Index | Next Page: win32 msgs: WM_POWERBROADCAST | Previous Page: win32 msgs: WM_PALETTEISCHANGING
An application sends a WM_PASTE message to an edit control or combo box to copy the current content of the clipboard to the edit control at the current caret position. Data is inserted only if the clipboard contains data in CF_TEXT format.
To send this message, call the SendMessage function with the following parameters.
SendMessage( (HWND) hWnd, // handle to destination window WM_PASTE, // message to send (WPARAM) wParam, // not used; must be zero (LPARAM) lParam // not used; must be zero );
This message has no parameters.
This message does not return a value.
When sent to a combo box, the WM_PASTE message is handled by its edit control. This message has no effect when sent to a combo box with the CBS_DROPDOWNLIST style.
windows_programming_notes.nbk: Home | Index | Next Page: win32 msgs: WM_POWERBROADCAST | Previous Page: win32 msgs: WM_PALETTEISCHANGING
Notebook exported on Monday, 7 July 2008, 18:56:50 PM Eastern Daylight Time