struct _TBBUTTON 结构;在win32和win64下进行条件编译

struct _TBBUTTON 结构

struct _TBBUTTON 结构 是一个定义按钮相关信息的结构;具体原型为:
typedef struct _TBBUTTON {
int iBitmap;// zero-based index of button image 从0开始的按钮图标索引
int idCommand;  // command to be sent when button pressed 按钮按下时发送的命令
BYTE fsState;   // button state--see below 按钮状态
BYTE fsStyle;   // button style--see below 按钮风格
DWORD dwData;   // application-defined value 用户自定义数据
int iString;// zero-based index of button label string 从0开始的按钮标签索引
} TBBUTTON;

The members are as follows:

iBitmap

Zero-based index of button image. NULL if no image for this button.

idCommand

Command identifier associated with the button. This identifier is sent in a WM_COMMAND message when the button is chosen. If the fsStyle member has the TBSTYLE_SEP value, this member must be zero.

fsState

Button state flags. It can be a combination of the values listed below:

  • TBSTATE_CHECKED   The button has the TBSTYLE_CHECKED style and is being pressed.

  • TBSTATE_ENABLED   The button accepts user input. A button that does not have this state does not accept user input and is grayed.

  • TBSTATE_HIDDEN   The button is not visible and cannot receive user input.

  • TBSTATE_INDETERMINATE   The button is grayed.

  • TBSTATE_PRESSED   The button is being pressed.

  • TBSTATE_WRAP   A line break follows the button. The button must also have the TBSTATE_ENABLED state.

fsStyle

Button style. It can be a combination of the values listed below:

  • TBSTYLE_BUTTON   Creates a standard push button.

  • TBSTYLE_CHECK   Creates a button that toggles between the pressed and unpressed states each time the user clicks it. The button has a different background color when it is in the pressed state. 

  • TBSTYLE_CHECKGROUP   Creates a check button that stays pressed until another button in the group is pressed.

  • TBSTYLE_GROUP   Creates a button that stays pressed until another button in the group is pressed.

  • TBSTYLE_SEP   Creates a separator, providing a small gap between button groups. A button that has this style does not receive user input.

dwData

User-defined data.

iString

Zero-based index of the string to use as the button’s label. NULL if there is no string for this button.

在win32和win64下进行条件编译

   typedef  struct 
  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值