title: How to force-redraw IE control on WM_SIZE?
body: <p>In my Win32 application, I embed Internet Explorer ActiveX control within a dialog. When the dialog is resized by the user, I process WM_SIZE event and set the size of the IE control to occupy the client rectangle of the dialog.</p>
  
  <p>Although the resizing of the control works, the control itself does not refresh. I am wondering if there is some command I could send to the control to refresh/redraw itself. Regards.</p>
  
  <p>Here is my DlgProc code to resize:</p>
  
  <pre><code>case WM_SIZE:   {
      HWND hX = GetDlgItem(hh, IDC_EXPLORER);
      if (hX) {
          RECT rc = { 0 };
          GetClientRect(hh, &amp;rc);
          ::SetWindowPos(hX, 0, 0, 0, rc.right, rc.bottom, SWP_SHOWWINDOW);
          // ::MoveWindow(hX, 0, 0, rc.right, rc.bottom, TRUE);
      }
      return 0;
  }
  </code></pre>
  
  <p>Instead of SetWindowPos, I also tried MoveWindow. However, it doesn't seem to make any difference.</p>