您的位置:首页 > 其它

修改字体大小

2017-04-07 16:05 183 查看
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);
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: