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. 使用Rundll32运行DLL中的函数
  2. Switch 无法启动软件。 请在HOME菜单中再试一次。
  3. 用VBS生成GUID
  4. VBS调用IE对象直接打印网页
  5. VBS使用Scripting.Dictionary字典对象

留下回复