首页 > Windows开发 > 详细

【Windows API】Button Control Macros

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

①Button_Enable

Enables or disables a button

②Button_GetCheck

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

③Button_GetIdealSize

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

④Button_GetImageList

Gets the BUTTON_IMAGELIST structure that describes the image list that is set for a button control. You can use this macro or send the BCM_GETIMAGELIST message explicitly

⑤Button_GetNote

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

⑥Button_GetNoteLength

Gets the length of the note text that may be displayed in the description for a command link. Use this macro or send the BCM_GETNOTELENGTH message explicitly

⑦Button_GetSplitInfo

Gets information for a specified split button control. Use this macro or send the BCM_GETSPLITINFO message explicitly

⑧Button_GetState

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

⑨Button_GetText

Gets the text of a button

⑩Button_GetTextLength

Gets the number of characters in the text of a button

①②Button_GetTextMargin

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

①③Button_SetCheck

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

①④Button_SetDropDownState

Sets the drop down state for a specified button with style of BS_SPLITBUTTON. Use this macro or send the BCM_SETDROPDOWNSTATE message explicitly

①⑤Button_SetElevationRequiredState

Sets the elevation required state for a specified button or command link to display an elevated icon. Use this macro or send the BCM_SETSHIELD message explicitly

①⑥Button_SetImageList

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

①⑦Button_SetNote

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

①⑧Button_SetSplitInfo

Sets information for a specified split button control. Use this macro or send the BCM_SETSPLITINFO message explicitly

①⑨Button_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 use this macro or send the BM_SETSTATE message explicitly

②0Button_SetStyle

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

②①Button_SetText

Sets the text of a button

②②Button_SetTextMargin

Sets the margins for drawing text in a button control. You can use this macro or send the BCM_SETTEXTMARGIN message explicitly.

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

【Windows API】Button Control Macros

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

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