title: WM_MOUSEMOVE message handling
body: <p>I have the following <code>WndProc</code>:</p>
  
  <pre><code>LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM w, LPARAM l)
  {
      switch (message)
      {
      case WM_DESTROY:
          PostQuitMessage(0);
          return 0;
      case WM_MOUSEMOVE:
              return 0;
      default:
          return DefWindowProc(hWnd, message, w, l);
      }
  }
  </code></pre>
  
  <p>I want to prevent the the mouse from moving, so that I am attempting to discard moving message. The problem is that mouse is still moving. I have tried also <code>WM_NCHITTEST</code> and <code>WM_MOUSEHOVER</code>.</p>