VS2010项目不显示3D控件 [英] VS2010 project does not show 3D controls

查看:104
本文介绍了VS2010项目不显示3D控件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚安装了VS2010.我创建了一个hellow World项目,在Dialog编辑器中,所有控件都具有Win7样式.当我运行该程序时,所有控件都具有Win95样式.

I just installed VS2010. I Created a hellow World project and in the Dialog editors all of the controls have a Win7 style to them. When I run the program, all of the controls have the Win95 style.

What do I have to do to get modern looking controls?

推荐答案

我认为
I think this link[^] may help.


最后of stdafx.h,添加:

At the end of stdafx.h, add:

#pragma comment(linker,"/manifestdependency:\"type=''win32'' name=''Microsoft.Windows.Common-Controls'' version=''6.0.0.0'' processorArchitecture=''x86'' publicKeyToken=''6595b64144ccf1df'' language=''*''\"")



那会起作用的.
如果已经存在(可能),请删除ifdefs.

901105-旧样式滚动条 [



That will work.
If it is already there (probably), remove ifdefs.

901105 - old style scrollbar[^]


我显然是关闭项目向导的复选框"Unicode支持".

结果,定义清单依赖项的杂项未定义:

WTF?微软认为,如果您不希望使用UNICODE,那么您不应该拥有外观时尚的控件吗?那些家伙在杀我!
I apparently turned OFF the project wizard''s checkbox, "Unicode support".

As a result, the pragma''s defining the manifest dependencies were undefined:

WTF? Microsoft thinks that if you don''t want UNICODE, then you should not get modern looking controls? Those guys are killin me!
#ifdef _UNICODE
#if defined _M_IX86
#pragma comment(linker,"/manifestdependency:\"type=''win32'' name=''Microsoft.Windows.Common-Controls'' version=''6.0.0.0'' processorArchitecture=''x86'' publicKeyToken=''6595b64144ccf1df'' language=''*''\"")
#elif defined _M_X64
#pragma comment(linker,"/manifestdependency:\"type=''win32'' name=''Microsoft.Windows.Common-Controls'' version=''6.0.0.0'' processorArchitecture=''amd64'' publicKeyToken=''6595b64144ccf1df'' language=''*''\"")
#else
#pragma comment(linker,"/manifestdependency:\"type=''win32'' name=''Microsoft.Windows.Common-Controls'' version=''6.0.0.0'' processorArchitecture=''*'' publicKeyToken=''6595b64144ccf1df'' language=''*''\"")
#endif
#endif



简单修复:解决Microsofties:



Simple fix: Work around the Microsofties:

#if defined _M_IX86
#pragma comment(linker,"/manifestdependency:\"type=''win32'' name=''Microsoft.Windows.Common-Controls'' version=''6.0.0.0'' processorArchitecture=''x86'' publicKeyToken=''6595b64144ccf1df'' language=''*''\"")
#elif defined _M_IA64
#pragma comment(linker,"/manifestdependency:\"type=''win32'' name=''Microsoft.Windows.Common-Controls'' version=''6.0.0.0'' processorArchitecture=''ia64'' publicKeyToken=''6595b64144ccf1df'' language=''*''\"")
#elif defined _M_X64
#pragma comment(linker,"/manifestdependency:\"type=''win32'' name=''Microsoft.Windows.Common-Controls'' version=''6.0.0.0'' processorArchitecture=''amd64'' publicKeyToken=''6595b64144ccf1df'' language=''*''\"")
#else
#pragma comment(linker,"/manifestdependency:\"type=''win32'' name=''Microsoft.Windows.Common-Controls'' version=''6.0.0.0'' processorArchitecture=''*'' publicKeyToken=''6595b64144ccf1df'' language=''*''\"")
#endif


这篇关于VS2010项目不显示3D控件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆