title: How do I enable zooming in the Win32 Rich Edit control?
body: <p>I'm having trouble getting my Rich Edit control to accept the zoom ratio I specify when sending it the <code>EM_SETZOOM</code> message.  I create the control using the following line of code:</p>
  <pre><code>editWrap = CreateWindowEx(0, MSFTEDIT_CLASS, nullptr, ES_EX_ZOOMABLE | ES_MULTILINE |
      WS_VISIBLE | WS_CHILD | WS_VSCROLL | ES_AUTOVSCROLL | ES_DISABLENOSCROLL, 0, 0, 0, 0,
      hwnd, nullptr, appInstance, nullptr);
  </code></pre>
  <p>Whenever I try to send it the <code>EM_SETZOOM</code> message the return value is always <code>FALSE</code> no matter what I specify as the <code>WPARAM</code> and <code>LPARAM</code>.  I also tried putting <code>ES_EX_ZOOMABLE</code> as the first parameter of the <code>CreateWindowEx</code> call with the same results.</p>
  <p>Zooming with the mouse works as expected.  That's not the issue here.  I'm trying to set the zoom programmatically.</p>
  <p>I'm using the following code to send the message:</p>
  <pre><code>SendMessage(getCurrentEditor(), EM_SETZOOM, MAKEWPARAM(64, 0), MAKELPARAM(1, 0));
  </code></pre>