ClearType is a quality property for fonts. You should get the LOGFONT for your CFont and set the lfQuality property. Here's an example.
CFont *pFont = CFont::FromHandle((HFONT)GetStockObject(DEFAULT_GUI_FONT));
LOGFONT logFont;
pFont->GetLogFont(&logFont);
logFont.lfQuality = CLEARTYPE_NATURAL_QUALITY;
CFont font2;
font2.CreateFontIndirect(&logFont);
Note: you can use either CLEARTYPE_QUALITY
or CLEARTYPE_NATURAL_QUALITY
, test both to see which looks best.
原文:http://stackoverflow.com/questions/2426661/why-are-not-all-texts-of-my-mfc-applicatiopn-displayed-using-cleartype
http://comments.gmane.org/gmane.games.devel.windows/1031