现在的位置: 首页 > 综合 > 正文

宏定义缺失的解决

2012年11月20日 ⁄ 综合 ⁄ 共 1028字 ⁄ 字号 评论关闭
对新界面支持时,VC编译找不到定义的解决
实际上,在msdn中能找到的帮助,在vc中不一定能编译成功.在ms的网站上,经常有需要最新版本的.h,.lib支持的提示..lib有时是不必要的,关键是.h文件.如果没有,在stdafx.h中自己加也可以,比如下面就是比较常用的:

#define BTNS_SHOWTEXT 0x0040 // ignored unless TBSTYLE_EX_MIXEDBUTTONS is set
#define BTNS_WHOLEDROPDOWN 0x0080 // draw drop-down arrow, but without split arrow section
#define SPI_GETFLATMENU 0x1022
#define SPI_GETKEYBOARDCUES 0x100A
#define TPM_VERPOSANIMATION 0x1000L
#define MIIM_FTYPE 0x00000100
#define COLOR_MENUHILIGHT 29
#define DT_HIDEPREFIX 0x00100000

#define BTNS_BUTTON TBSTYLE_BUTTON // 0x0000
#define BTNS_SEP TBSTYLE_SEP // 0x0001
#define BTNS_CHECK TBSTYLE_CHECK // 0x0002
#define BTNS_GROUP TBSTYLE_GROUP // 0x0004
#define BTNS_CHECKGROUP TBSTYLE_CHECKGROUP // (TBSTYLE_GROUP | TBSTYLE_CHECK)
#define BTNS_DROPDOWN TBSTYLE_DROPDOWN // 0x0008
#define BTNS_AUTOSIZE TBSTYLE_AUTOSIZE // 0x0010; automatically calculate the cx of the button
#define BTNS_NOPREFIX TBSTYLE_NOPREFIX // 0x0020; this button should not have accel prefix

这在codeguru中找到的一篇文章中所写.

另外

1.#define TBstyle_EX_MIXEDBUTTONS   0x00000008
2.#define TBstyle_BUTTON            0x0000
 #define BTNS_BUTTON               TBstyle_BUTTON

抱歉!评论已关闭.