Hello
with this code i want display chinese character in a textstatic and 2 Buttons
but there is no change to the TTF msming, always the System Font appeares.
Only the new Size is correct.
LOGFONT lf;
if (!AddFontResource(_T("\\ffsdisk\\msming.ttf")))
{
strmessage.Format(L"msming.ttf not found");
MessageBox(strmessage.GetString());
}
memset(&lf,0, sizeof(LOGFONT));
lf.lfHeight = 25;
_tcscpy(lf.lfFaceName, _T("MS Ming"));
b_font.CreateFontIndirect(&lf);
GetDlgItem(IDC_STATIC_BEREIT)->SetFont(&b_font);
GetDlgItem(IDC_BUTTON1) ->SetFont(&b_font);
GetDlgItem(IDC_BUTTON2) ->SetFont(&b_font);
Regards
Thomas Dauner