title: How to change the "FONT" for CEdit?
body: <p>How to adjust the "font" for the following:(solved)</p>
  
  <pre><code>fontSize 40
  BOLD
  Italicized 
  </code></pre>
  
  <p>Thanks</p>
  
  <hr>
  
  <p>The following fails:(now works)</p>
  
  <pre><code>CFont *myFont = new CFont();
  myFont-&gt;CreateFont( 40, 0, 0, 0, FW_HEAVY, true, false,
          0, ANSI_CHARSET, OUT_DEFAULT_PRECIS, CLIP_DEFAULT_PRECIS, DEFAULT_QUALITY,
          FIXED_PITCH|FF_MODERN, _T("Courier New") );
  
  CEdit *ed1 = new CEdit();
  ed1-&gt;Create(WS_VISIBLE | WS_BORDER,CRect(200,100,500,140),this,16);
  ed1-&gt;SetFont(myFont);
  </code></pre>