title: Is there a way to change the title font for a MFC SDI application?
body: <p>I am trying to increase the font size for the title on the MainFrame. So far, I have tried several approaches without a good result. Any suggestions are welcome.</p>
  
  <p>A. Approach 1</p>
  
  <pre><code>    void CMainFrame::OnPaint()
  {
  CPaintDC dc(this); // device context for painting
      LOGFONT lF;
      lF.lfHeight = 10;
      lF.lfWidth = 0;
      lF.lfWeight = FW_NORMAL;
      lF.lfItalic = FALSE; //TRUE;
      lF.lfUnderline = FALSE; //TRUE;
      lF.lfStrikeOut = FALSE; //TRUE;
      lF.lfEscapement = 0;
      lF.lfOrientation = 0;
      _tcscpy_s(lF.lfFaceName, _T("Verdana"));
  
      CFont m_font;
      m_font.CreateFontIndirect(&amp;lF);
      SetFont(&amp;m_font);
         }
  </code></pre>
  
  <p>It doesn't change a thing.</p>
  
  <p>B. Approach 2</p>
  
  <pre><code>     void CMainFrame::OnPaint()
       {
       CPaintDC dc(this); // device context for painting
      LOGFONT lF;
      lF.lfHeight = 10;
      lF.lfWidth = 0;
      lF.lfWeight = FW_NORMAL;
      lF.lfItalic = FALSE; //TRUE;
      lF.lfUnderline = FALSE; //TRUE;
      lF.lfStrikeOut = FALSE; //TRUE;
      lF.lfEscapement = 0;
      lF.lfOrientation = 0;
      _tcscpy_s(lF.lfFaceName, _T("Verdana"));
  
      CFont m_font;
      m_font.CreateFontIndirect(&amp;lF);
      BOOL fRedraw = TRUE;
      SendMessageToDescendants(WM_SETFONT, (WPARAM)m_font.m_hObject);
        }
  </code></pre>
  
  <p>This approach deletes all my ribbon menus and creates a lot of exceptions.</p>