1、创建XPStyle.manifest
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
<assemblyIdentity
name="XP style manifest"
processorArchitecture="x86"
version="1.0.0.0"
type="win32"/>
<dependency>
<dependentAssembly>
<assemblyIdentity
type="win32"
name="Microsoft.Windows.Common-Controls"
version="6.0.0.0"
processorArchitecture="x86"
publicKeyToken="6595b64144ccf1df"
language="*"
/>
</dependentAssembly>
</dependency>
</assembly>
2、添加资源文件,编辑资源文件,添加
1 24 "Gui//XPStyle.manifest"
3、工程中添加XPStyle.manifest
4、不确定是否要
#include <CommCtrl.h>
#pragma comment(lib, "comctl32.lib")
InitCommonControls();
5、编译成功