c#中可以使用Application.EnableVisualStyle()来启用XP样式,C++中如何实现???????????
用文本输入以下是内容:
<﹖xml version=″1.0″ encoding=″UTF-8″ standalone=″yes″﹖>
<assembly xmlns=″urn?schemas-microsoft-com?asm.v1″ manifestVersion=″1.0″>
<assemblyIdentity processorArchitec ture=″x86″ version=″5.1.0.0″ type=″win32″
name=″yourappli cation.exe″/>
<description>de scrptions</description>
<dependency>
<dependentAssembly>
<assemblyIdentity
type=″win32″
name=″Microsoft.Windows.Common-Controls″
version=″6.0.0.0″
publicKeyToken=″6595b64144ccf1df″
language=″?″
processorArchitec ture=″x86″/>
</dependentAssembly>
</dependency>
</assembly>
保存以后,在编译器中导入此文件。资源类型是24(其实就是RT_MANIFEST),ID是1(必须)。若不能正常运行,请添加以下代码。
//…
#pragma﹖comment?lib?﹖″comctl32.lib″?
#include < commctrl.h>
//…在初始化处加上…
InitCommonControls???
然后编译则大功告成!