读书人

VS2008中的对话框界面风格有关问题求教

发布时间: 2013-07-21 21:55:43 作者: rapoo

VS2008中的对话框界面风格问题求教!

图二:VS2008中的对话框界面风格有关问题求教 界面 对话框 Windows?7 Windows?XP 风格
[解决办法]
猫腻在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


如果有, 还是界面风格不正确, 那么上面的代码去掉ifdef _UNICODE宏.

一般都是由于你的程序环境使用的是多字符集造成的.

读书人网 >VC/MFC

热点推荐