windows下一些特殊的消息(摘抄)

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_COPY

This 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_CUT
This 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_PASTE

This 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 BOX
CB_ADDSTRING

This 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

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值