Visual Studio 2010 MFC 对话框:Aero 风格? [英] Visual Studio 2010 MFC dialogs: Aero style?

查看:13
本文介绍了Visual Studio 2010 MFC 对话框:Aero 风格?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

目前,我的 MFC 对话框看起来像来自 Windows 98.有没有办法让它使用活动的 Windows 7 样式(aero)?

Currently, my MFC dialog looks like from Windows 98. Is there a way to make it use the active Windows 7 style (aero)?

(我使用的是 C++)

(I'm using C++)

推荐答案

尝试将其添加到 Stdafx.h

Try adding this to Stdafx.h

#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_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
#endif

这篇关于Visual Studio 2010 MFC 对话框:Aero 风格?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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