安装 vs2008 feature pack 后,所开发的程序菜单字体丑

在 InitInstance 中执行下列代码,即可显示为正常字体:

 

LOGFONT logfont = {0};

:: SystemParametersInfo(SPI_GETICONTITLELOGFONT, sizeof(LOGFONT), &logfont, 0);

afxGlobalData.SetMenuFont(&logfont,true);

 

http://social.microsoft.com/Forums/zh-CN/vstudiozhchs/thread/df2a6e11-1217-4fe6-b759-51f3526e25c6

posted @ 2009-05-08 15:26  DEMENTiA  阅读(550)  评论(0编辑  收藏  举报