如何修改MFC界面风格

长平狐 发布于 2013/03/19 18:20
阅读 588
收藏 0

在将一个VC6.0的工程用VS2010打开的时候,发现运行的时候界面风格是Windows2000的风格,于是做以下修改就变成系统默认的风格了:

在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_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



OK,搞定!


原文链接:http://blog.csdn.net/flydream0/article/details/7886328
加载中
返回顶部
顶部