CRect rectstatic;
GetDlgItem(IDC_STATIC_TITLE)->GetClientRect(rectstatic);
CFont * f;
f = new CFont;
f->CreateFont(rectstatic.bottom*7/8, // nHeight
0, // nWidth
0, // nEscapement
0, // nOrientation
FW_NORMAL, // nWeight
FALSE, // bItalic
FALSE, // bUnderline
0, // cStrikeOut
ANSI_CHARSET, // nCharSet
OUT_DEFAULT_PRECIS, // nOutPrecision
CLIP_DEFAULT_PRECIS, // nClipPrecision
DEFAULT_QUALITY, // nQuality
DEFAULT_PITCH | FF_SWISS, // nPitchAndFamily
_T("Times New Roman")); // lpszFac
GetDlgItem(IDC_STATIC_TITLE)->SetFont(f);
修改字体大小
最新推荐文章于 2020-05-04 16:37:32 发布