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



 
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"));
}

你可能感兴趣的:(VC++)