Article ID: 152099
Article Last Modified on 11/21/2006
// On DBCS systems, also change "MS Sans Serif" or "Helv" to system
font.
if ((!bSetSysFont) && GetSystemMetrics(SM_DBCSENABLED))
{
bSetSysFont = ((strFace == _T("MS Sans Serif")) ||
(strFace == _T("Helv")));
if (bSetSysFont && (wSize == 8))
wSize = 0;
}
if (bSetSysFont)
{
CDialogTemplate dlgTemp(lpDialogTemplate);
dlgTemp.SetSystemFont(wSize);
hTemplate = dlgTemp.Detach();
}
"MS Sans Serif" and "Helv" cannot correctly display double-byte strings.
Therefore, under a DBCS-enabled system, dialog boxes need to use the system
font instead.Additional query words: 4.00 4.10 Kanji Hiragana Katakana Hangeul Hanzi
Keywords: kbintl kbintldev KB152099