WM_CLEAR
This message is sent by an application to an edit control or combo box to delete, or clear, the current selection, if any, from the edit control.
WM_CLEAR wParam = 0; lParam = 0;
------------------------------------------------------------------------------------------------------------------
WM_UNDO
This message reverses the effect of the last edit control operation.
EM_UNDO wParam = 0; lParam = 0;------------------------------------------------------------------------------------------------WM_COPYThis message is sent by an application to an edit control or combo box to copy the current selection
to the clipboard in CF_UNICODETEXT format.
WM_COPY wParam = 0; lParam = 0;------------------------------------------------------------------------------------------------WM_CUTThis message is sent by an application 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_UNICODETEXT format.WM_CUT wParam = 0; lParam = 0;---------------------------------------------------------------------------------------------------WM_PASTEThis message is sent by an application 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_UNICODETEXT format.
WM_PASTE wParam = 0; lParam = 0;--------------------------------------------------------------------------------------------------------------------------JUST FOR COMBO BOXCB_ADDSTRINGThis message is sent by an application to add a string to the list box of a combo box. If the combo box
does not have the CBS_SORT style, the string is added to the end of the list. Otherwise, the string is inserted
into the list, and the list is sorted.
CB_ADDSTRING wParam = 0, lParam = (LPARAM)(LPCSTR) lpsz;
Parameters
-
wParam
- Not used. lpsz
- Long pointer to the null-terminated string to be added. If you create the combo box with an owner-drawn style
- but without the CBS_HASSTRINGS style, the value of the lpsz parameter is stored as item data rather than the string
- it would otherwise point to. T
- he item data can be retrieved or modified by sending the CB_GETITEMDATA or CB_SETITEMDATA message.
Return Values
The zero-based index to the string in the list box of the combo box indicates success.
CB_ERR indicates that an error has occurred.
CB_ERRSPACE indicates that insufficient space is available to store the new string.
-------------------------------------------------------------------------------------------------------------------------------------
CB_GETITEMDATA
CB_INSERTSTRING
CB_SETITEMDATA
CB_SETCURSEL
CB_RESETCONTENT
CB_SETITEMDATA
CB_FINDSTRING