win32 sdk使用xp風格控件

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、編譯成功

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章