首页 > Windows开发 > 详细

【Windows API】Button Control Messages

时间:2014-03-29 06:26:06      阅读:533      评论:0      收藏:0      [点我收藏+]

①BCM_GETIDEALSIZE

Gets the size of the button that best fits its text and image, if an image list is present. You can send this message explicitly or use the Button_GetIdealSize macro

②BCM_GETIMAGELIST

Gets the BUTTON_IMAGELIST structure that describes the image list assigned to a button control. You can send this message explicitly or use the Button_GetImageList macro

③BCM_GETNOTE

Gets the text of the note associated with a command link button. You can send this message explicitly or use the Button_GetNote macro

④BCM_GETNOTELENGTH

Gets the length of the note text that may be displayed in the description for a command link button. Send this message explicitly or by using the Button_GetNoteLength macro

⑤BCM_GETSPLITINFO

Gets information for a split button control. Send this message explicitly or by using the  Button_GetSplitInfo macro

⑥BCM_GETTEXTMARGIN

Gets the margins used to draw text in a button control. You can send this message explicitly or use the Button_GetTextMargin macro

⑦BCM_SETDROPDOWNSTATE

Sets the drop down state for a button with style TBSTYLE_DROPDOWN. Send this message explicitly or by using the Button_SetDropDownState macro

⑧BCM_SETIMAGELIST

Assigns an image list to a button control. You can send this message explicitly or use the Button_SetImageList macro

⑨BCM_SETNOTE

Sets the text of the note associated with a command link button. You can send this message explicitly or use the Button_SetNote macro

⑩BCM_SETSHIELD

Sets the elevation required state for a specified button or command link to display an elevated icon. Send this message explicitly or by using the Button_SetElevationRequiredState macro

①①BCM_SETSPLITINFO

Sets information for a split button control. Send this message explicitly or by using the  Button_SetSplitInfo macro

①②BCM_SETTEXTMARGIN

The BCM_SETTEXTMARGIN message sets the margins for drawing text in a button control

①③BM_CLICK

Simulates the user clicking a button. This message causes the button to receive the WM_LBUTTONDOWN and WM_LBUTTONUP messages, and the button‘s parent window to receive a BN_CLICKED notification code

①④BM_GETCHECK

Gets the check state of a radio button or check box. You can send this message explicitly or use the Button_GetCheck macro

①⑤BM_GETIMAGE

Retrieves a handle to the image (icon or bitmap) associated with the button

①⑥BM_GETSTATE

Retrieves the state of a button or check box. You can send this message explicitly or use the Button_GetState macro

①⑦BM_SETCHECK

Sets the check state of a radio button or check box. You can send this message explicitly or by using the Button_SetCheck macro

①⑧BM_SETDONTCLICK

Sets a flag on a radio button that controls the generation of BN_CLICKED messages when the button receives focus

①⑨BM_SETIMAGE

Associates a new image (icon or bitmap) with the button

②0BM_SETSTATE

Sets the highlight state of a button. The highlight state indicates whether the button is highlighted as if the user had pushed it. You can send this message explicitly or use the Button_SetState macro

②①BM_SETSTYLE

Sets the style of a button. You can send this message explicitly or use the Button_SetStyle macro

【Windows API】Button Control Messages,布布扣,bubuko.com

【Windows API】Button Control Messages

原文:http://www.cnblogs.com/Cxx-Code/p/3632056.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!