title: MFC SetFont for specific dialog control not working
body: <p>I have a standard MFC SDI app. In the About Dialog (created with the MFC Wizard), I am trying to change some static text format (labels). This is my code:</p>
  
  <pre><code>BOOL CAboutDlg::OnInitDialog()
  {
      CDialogEx::OnInitDialog();
  
      auto font_programname = std::make_shared&lt;CFont&gt;();
      font_programname-&gt;CreateFontW(25, 0, 0, 0, FW_BLACK, 0, 1, 0, 0, 0, 0, 0, 0, _T("Arial"));
      _label_programname.SetFont(font_programname.get());
  
      return TRUE;  // return TRUE unless you set the focus to a control
      // EXCEPTION: OCX Property Pages should return FALSE
  }
  </code></pre>
  
  <p>However, this results only in the font becoming bold, but the size does not change. What am I doing wrong?</p>