title: Which Font is the default for MFC Dialog Controls?
body: <p>The picture below (enlarged, so you better see the differences) shows Font differences between dynamically created Edit controls (the upper two examples) and Edit Controls created from the Dialog Editor (the lower example). How can I make the font of my dynamically created CEdit controls looking like the default (the lower example)?</p>
  
  <p><img src="https://i.stack.imgur.com/xozrM.png" alt="enter image description here"></p>
  
  <p>I have created the CEdit Controls like following:</p>
  
  <pre><code>obj-&gt;CreateEx(WS_EX_CLIENTEDGE, _T("EDIT"), _T(""),
                WS_CHILD | WS_VISIBLE | WS_TABSTOP,
                rect.left, rect.top, rect.Width(), rect.Height(),
                GetSafeHwnd(), reinterpret_cast&lt;HMENU&gt;(mId));
  
  obj-&gt;SetFont(&amp;mFont); // mFont was created in the Dialog Constructor
                        // with mFont.CreatePointFont(80, _T("MS Shell Dlg"));
  </code></pre>
  
  <p>Thanks for your help!</p>