zoukankan      html  css  js  c++  java
  • 宏定义缺失的解决

    对新界面支持时,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

  • 相关阅读:
    AdvStringGrid使用小结
    svn提示out of date的解决方法
    delphi之socket通讯
    Delphi的Socket编程步骤
    C++ Socket编程步骤
    centos7安装docker
    centos7安装指南
    UltraISO制作U盘启动盘
    浅谈linux 文件的三个时间
    自动配置zabbix-agent
  • 原文地址:https://www.cnblogs.com/xiaotaoliang/p/201374.html
Copyright © 2011-2022 走看看