vs2008的显示界面菜单显示模糊,怎么修改菜单的字体呢?
——是vs2008SP1的原因,解决如下:
在CMainFrame::OnCreate函数中加入:
//设置正常字体
LOGFONT lf;
afxGlobalData.fontRegular.GetLogFont(&lf);
afxGlobalData.fontRegular.DeleteObject();
lf.lfHeight = -12;
lstrcpy(lf.lfFaceName, _T("宋体")); // using without style office 2007
afxGlobalData.fontRegular.CreateFontIndirect(&lf);
//设置加粗的字体
afxGlobalData.fontBold.GetLogFont(&lf);
afxGlobalData.fontBold.DeleteObject();
lf.lfHeight = -12;
lstrcpy(lf.lfFaceName, _T("宋体"));
afxGlobalData.fontBold.CreateFontIndirect(&lf);
afxGlobalData.fontTooltip.GetLogFont(&lf);
afxGlobalData.fontTooltip.DeleteObject();
lf.lfHeight = -12;
lstrcpy(lf.lfFaceName, _T("宋体"));
afxGlobalData.fontTooltip.CreateFontIndirect(&lf);
本文介绍了解决VS2008菜单显示模糊的问题,通过修改CMainFrame::OnCreate函数中的字体设置来实现清晰的菜单显示。适用于安装了VS2008SP1后遇到菜单字体模糊的情况。
798

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



