VC 2010+MFC:CMFCToolBar和CMFCMenuBar的字体大小修改

转自http://blog.csdn.net/hsp494980719/article/details/8298556

 
 
CMainFrame::CMainFrame()
{
theApp.m_nAppLook = theApp.GetInt(_T("ApplicationLook"), ID_VIEW_APPLOOK_OFF_2007_BLUE);

afxGlobalData.fontRegular.DeleteObject();
afxGlobalData.fontRegular.CreateFont(
  24,                        // nHeight
  0,                         // nWidth
  0,                         // nEscapement
  0,                         // nOrientation
  FW_NORMAL,                 // nWeight
  FALSE,                     // bItalic
  FALSE,                     // bUnderline下划线标记,需要下划线把这里设置成TRUE
  0,                         // cStrikeOut
  ANSI_CHARSET,              // nCharSet
  OUT_DEFAULT_PRECIS,        // nOutPrecision
  CLIP_DEFAULT_PRECIS,       // nClipPrecision
  DEFAULT_QUALITY,           // nQuality
  DEFAULT_PITCH | FF_SWISS,  // nPitchAndFamily
  _T("Segoe UI"));
}

 

©️2020 CSDN 皮肤主题: 大白 设计师:CSDN官方博客 返回首页