Visual Studio 2010 MFC对话框:Aero风格? [英] Visual Studio 2010 MFC dialogs: Aero style?
本文介绍了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屋!
查看全文