【Windows API】Button Control Messages

①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

posted on 2014-03-29 02:10  至死丶不渝  阅读(432)  评论(0编辑  收藏  举报

导航