headerctrl丢失了Visual Studio 10的主题属性 [英] headerctrl lost theme attributes with Visual studio 10
本文介绍了headerctrl丢失了Visual Studio 10的主题属性的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在将旧项目从VS 6转换为VS10.
我的headerctrl丢失了xp主题属性,并回到了Windows经典版.我想新项目设置肯定有问题.
解决方案
您需要将以下编译指示添加到源文件中,或将内容字符串添加到清单中(在项目属性"的链接器"部分下):
// Enable visual styles #pragma comment(linker, "\"/manifestdependency: \ type=''win32'' \ name=''Microsoft.Windows.Common-Controls'' \ version=''6.0.0.0'' \ processorArchitecture=''*'' \ publicKeyToken=''6595b64144ccf1df'' \ language=''*''\"")
You need to add the following pragma to your source file, or the content string to your manifest (under the Linker section of Project Properties):
// Enable visual styles #pragma comment(linker, "\"/manifestdependency: \ type=''win32'' \ name=''Microsoft.Windows.Common-Controls'' \ version=''6.0.0.0'' \ processorArchitecture=''*'' \ publicKeyToken=''6595b64144ccf1df'' \ language=''*''\"")
这篇关于headerctrl丢失了Visual Studio 10的主题属性的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文