文中對如何實現XP Style的解釋是:
If you want your application to use visual styles, you must add an application manifest that indicates that ComCtl32.dll version 6 should be used if it is available. Version 6 includes some new controls and new options for other controls, but the biggest change is support for changing the appearance of controls in a window.
要想使用XP Style,最簡單的辦法是創建一個.manifest文件。文件必須與目標程序在同一個文件夾(例如你的工程的\bin文件夾),并且名字必須是
MyApp.exe.manifest,其中紅色部分是你的程序文件名。文件的內容如下:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
<assemblyIdentity version="1.0.0.0" processorArchitecture="X86"
原文轉自:http://www.anti-gravitydesign.com