修改字体大小
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);
相关文章推荐
- bat批处理修改cmd窗口大小、标题、字体、背景颜色
- 修改XtraMessageBox的内容字体大小
- eclipse中文字体大小修改,让中英文字体协调
- 如何修改UIButton的字体大小和颜色
- (iOS开发)修改UITextField中placeholder的字体大小,颜色
- ios修改textField的placeholder的字体颜色、大小
- iOS-修改UITextField的placeholder字体颜色、大小
- iOS修改UITextField的placeholder的字体颜色大小
- 防止系统修改app字体大小
- ios修改textField的placeholder的字体颜色、大小
- Android Studio修改主题和字体大小
- 界面中显示NumberPicker,修改字体大小
- 如何修改CEdit&CB中文本的字体大小及颜色
- ios修改textField的placeholder的字体颜色、大小
- pycharm 修改窗口IDE字体大小
- 修改eclipse字体大小
- 关机充电百分比字体大小修改过程记录
- eclipse修改字体大小
- word字体大小与公式编辑器字体对照表 如何批量修改word里的公式
- 修改控件Spinner内容的字体大小 颜色等属性