1.在public下声明:
CFont  m_textFont;
2.在构造函数下:
m_textFont.CreateFont(
   14,                        // nHeight
   0,                         // nWidth
   0,                         // nEscapement
   0,                         // nOrientation
   FW_BOLD,                 // nWeight    //设置为粗体
  FALSE,                     // bItalic
   FALSE,                     // bUnderline
  0,
   ANSI_CHARSET,              // nCharSet
   OUT_DEFAULT_PRECIS,        // nOutPrecision
   CLIP_DEFAULT_PRECIS,       // nClipPrecision
   DEFAULT_QUALITY,           // nQuality
   DEFAULT_PITCH | FF_SWISS,  // nPitchAndFamily
 
   "宋体"); 
在初始化中:
m_combox.SetFont(&m_textFont);

相关文章:

  • 2021-07-18
  • 2021-09-02
  • 2021-12-18
  • 2022-02-12
  • 2021-05-15
  • 2021-11-18
猜你喜欢
  • 2021-10-06
  • 2022-12-23
  • 2022-12-23
  • 2022-01-06
  • 2021-08-10
  • 2021-04-16
相关资源
相似解决方案