1、改静态文体的ID,如:IDC_STATIC1
2、在OnInitDialog中添加如下代码:
    CFont * f;
    f = new CFont;
    f->CreateFont(16, // nHeight
    0, // nWidth
    0, // nEscapement
    0, // nOrientation
    FW_BOLD, // nWeight
    TRUE, // 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("Arial")); // lpszFac

    GetDlgItem(IDC_STATIC1)->SetFont(f);

相关文章:

  • 2021-05-10
  • 2021-10-15
  • 2021-11-28
  • 2021-10-12
  • 2022-12-23
  • 2021-05-16
  • 2021-11-10
  • 2021-07-21
猜你喜欢
  • 2021-11-10
  • 2021-08-14
  • 2021-12-13
  • 2021-10-26
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案