windows_programming_notes.nbk: Home | Index | Next Page: WM_DDE_ACK | Previous Page: WM_CTLCOLORSTATIC
An application sends a WM_CUT message to an edit control or combo box to delete (cut) the current selection, if any, in the edit control and copy the deleted text to the clipboard in CF_TEXT format.
To send this message, call the SendMessage function with the following parameters.
SendMessage( (HWND) hWnd, // handle to destination window WM_CUT, // 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.
The deletion performed by the WM_CUT message can be undone by sending the edit control an EM_UNDO message.
To delete the current selection without placing the deleted text on the clipboard, use the WM_CLEAR message.
When sent to a combo box, the WM_CUT message is handled by its edit control. This message has no effect when sent to a combo box with the CBS_DROPDOWNLIST style.
Windows NT/2000 or later: Requires Windows NT 3.1 or later. Windows 95/98/Me: Requires Windows 95 or later. Header: Declared in Winuser.h; include Windows.h.
windows_programming_notes.nbk: Home | Index | Next Page: WM_DDE_ACK | Previous Page: WM_CTLCOLORSTATIC
Notebook exported on Monday, 7 July 2008, 18:56:50 PM Eastern Daylight Time