unicode 有点麻烦,对于懒人来说,这不是个好办法,去掉unicode又发现控件奇丑无比:-(
打开vs2008的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我们把他单独添加到最后就可以了:
#pragma comment(linker,"/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='x86' publicKeyToken='6595b64144ccf1df' language='*'\"")
至于是x86还是amd64,运行一下就知道了,不好用会报错滴。
本文将介绍如何在使用VS2008开发时,解决unicode编码导致的问题,以及如何调整控件以提高美观度。通过在std::afx.h文件中添加特定代码段,可以解决unicode相关问题,并根据实际运行环境选择x86或amd64版本,以避免控件显示异常。同时,提供了一个简单的步骤来确保控件外观符合预期。
1859

被折叠的 条评论
为什么被折叠?



