struct _TBBUTTON 结构;在win32和win64下进行条件编译
来源:互联网 发布:淘宝上的gucci是真的吗 编辑:程序博客网 时间:2024/05/29 13:55
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 aWM_COMMAND message when the button is chosen. If the fsStyle member has theTBSTYLE_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 theTBSTYLE_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 theTBSTATE_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
_TBBUTTON {
int
iBitmap;
int
idCommand;
BYTE
fsState;
BYTE
fsStyle;
#ifdef _WIN64
BYTE
bReserved[6];
// padding for alignment
#elif defined(_WIN32)
BYTE
bReserved[2];
// padding for alignment
#endif
DWORD_PTR
dwData;
INT_PTR
iString;
} TBBUTTON, NEAR* PTBBUTTON, *LPTBBUTTON;
从_TBBUTTON结构中我们可以看到不同的编译风格。
0 0
- struct _TBBUTTON 结构;在win32和win64下进行条件编译
- CGNS库在Win32和Win64平台的编译和链接
- 各种数据类型在Win32和Win64系统下所占用的字节数(C语言)
- windows 下编译TCL的方法(win32 and win64)
- OpenAL-soft编译,MinGW Win32和Win64,动态和静态
- easylzma在Win32下编译
- VS2010下设置win32/win64,编译出不同平台程序版本
- cocos2d-x win64环境下编译和创建项目
- 解析在Xcode中进行条件编译
- 使用跟踪和调试进行条件编译
- 使用跟踪和调试进行条件编译
- linux学习-条件编译和结构体
- curl在win32平台下编译安装
- webkit在win32下的编译规则
- webkit在win32下的编译规则
- webkit在win32下的编译规则
- webkit在win32下的编译规则
- webkit在win32下的编译规则
- Zookeeper Cli 常用命令
- Ubuntu14.04 Eclipse 下安装SVN插件
- MediaPlayer和SurFaceView播放视频(疯狂Android讲义-李洋)
- centos 内核升级到3.10 支持docker容器
- Html+Css+Javascript项目实战
- struct _TBBUTTON 结构;在win32和win64下进行条件编译
- Mysql 按照日、周、月、季度、年统计数据
- webservice的使用
- WEB前端之HTML5[5]~HTML5增强的页面元素
- lintcode,子树
- Java学习之运算符、表达式
- 项目 1 - 验证算法之(3)冒泡排序
- 51nod 1087 1 10 100 1000【递推】
- medalRecorder录制音频。