VC实现XP风格控件效果

标签: , ,

要在VC6、VC2003、VC2005、VC2008程序中使用XP风格首先要创建一个manifest文件,将下面代码保存为xpstyle.manifest

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" 
          manifestVersion="1.0"> 
<dependency> 
    <dependentAssembly> 
        <assemblyIdentity 
            type="win32" 
            name="Microsoft.Windows.Common-Controls" 
            version="6.0.0.0" 
            processorArchitecture="X86" 
            publicKeyToken="6595b64144ccf1df" 
            language="*" 
        /> 
    </dependentAssembly> 
</dependency> 
</assembly>

完成以后导入到资源文件中,资源类型为24,ID为1(必须为1),重新编译即可。

参考链接:Using Windows XP Styles in your MFC/WIN32 Applications

赞赏

微信赞赏支付宝赞赏

随机文章:

  1. 用VBS获取屏幕分辨率
  2. 邪恶的eval和new Function
  3. NDS上的FC模拟器nesDS
  4. This document was successfully checked as XHTML 1.0 Strict!
  5. 用VBS检测U盘插入和弹出事件

留下回复