title: How to simulate mousemove event from one window to another?
body: <p>I am trying to Create an empty window, which process the WM_MOUSEMOVE message in WinProc:</p>
  
  <pre><code>case WM_MOUSEMOVE:
      {
          HWND otherHwnd = HWND(0x000608FC);
          POINT pt = {LOWORD(lParam), HIWORD(lParam)};
  
          ClientToScreen(otherHwnd, &amp;pt);
          PostMessage(otherHwnd, WM_TIMER, WPARAM(4096), 0);
          PostMessage(otherHwnd, message, wParam, lParam);
          SendMessage(otherHwnd, WM_NCHITTEST, NULL, (LPARAM)MAKELONG(pt.x, pt.y));
          SendMessage(otherHwnd, WM_NCHITTEST, NULL, (LPARAM)MAKELONG(pt.x, pt.y));
          SendMessage(otherHwnd, WM_NCHITTEST, NULL, (LPARAM)MAKELONG(pt.x, pt.y));
          SendMessage(otherHwnd, WM_SETCURSOR, WPARAM(otherHwnd), (LPARAM)MAKELONG(HTCLIENT, WM_MOUSEMOVE));
          break;
      }
  </code></pre>
  
  <p>I hope I can hover the hyberlink in IE, but result is the hyberlink only be showed as hover style in a very short time, then it turn to normal, and then again hover, then normal.
  At www.amazon.com, when I simulate to hover the link("Today's Deals ") , the link is blinking.</p>
  
  <p>I think there is a better way to do it, even the IE window is covered with some other windows, it can make the IE act with the mouseevent. waiting for the best solution~
  orz    </p>
  
  <p>Above is the spy++ logs when I realy hover the link.
  and the simulate is as same as the real message</p>
  
  <pre><code>&lt;01277&gt; 000608FC S WM_SETCURSOR hwnd:000608FC nHittest:HTCLIENT wMouseMsg:WM_MOUSEMOVE
  &lt;01278&gt; 000608FC R WM_SETCURSOR fHaltProcessing:False
  &lt;01279&gt; 000608FC P WM_MOUSEMOVE fwKeys:0000 xPos:406 yPos:50
  &lt;01280&gt; 000608FC P WM_TIMER wTimerID:4096 tmprc:00000000
  &lt;01281&gt; 000608FC S WM_NCHITTEST xPos:520 yPos:283
  &lt;01282&gt; 000608FC R WM_NCHITTEST nHittest:HTCLIENT
  &lt;01283&gt; 000608FC S WM_NCHITTEST xPos:520 yPos:283
  &lt;01284&gt; 000608FC R WM_NCHITTEST nHittest:HTCLIENT
  &lt;01285&gt; 000608FC S WM_NCHITTEST xPos:520 yPos:283
  &lt;01286&gt; 000608FC R WM_NCHITTEST nHittest:HTCLIENT
  &lt;01287&gt; 000608FC S WM_NCHITTEST xPos:520 yPos:283
  &lt;01288&gt; 000608FC R WM_NCHITTEST nHittest:HTCLIENT
  &lt;01289&gt; 000608FC S WM_SETCURSOR hwnd:000608FC nHittest:HTCLIENT wMouseMsg:WM_MOUSEMOVE
  &lt;01290&gt; 000608FC R WM_SETCURSOR fHaltProcessing:False
  &lt;01291&gt; 000608FC P WM_MOUSEMOVE fwKeys:0000 xPos:406 yPos:50
  &lt;01292&gt; 000608FC P WM_TIMER wTimerID:4096 tmprc:00000000
  &lt;01293&gt; 000608FC S WM_NCHITTEST xPos:520 yPos:283
  &lt;01294&gt; 000608FC R WM_NCHITTEST nHittest:HTCLIENT
  &lt;01295&gt; 000608FC S WM_NCHITTEST xPos:520 yPos:283
  &lt;01296&gt; 000608FC R WM_NCHITTEST nHittest:HTCLIENT
  &lt;01297&gt; 000608FC S WM_NCHITTEST xPos:520 yPos:283
  &lt;01298&gt; 000608FC R WM_NCHITTEST nHittest:HTCLIENT
  &lt;01299&gt; 000608FC S WM_NCHITTEST xPos:520 yPos:283
  &lt;01300&gt; 000608FC R WM_NCHITTEST nHittest:HTCLIENT
  &lt;01301&gt; 000608FC S WM_SETCURSOR hwnd:000608FC nHittest:HTCLIENT wMouseMsg:WM_MOUSEMOVE
  &lt;01302&gt; 000608FC R WM_SETCURSOR fHaltProcessing:False
  &lt;01303&gt; 000608FC P WM_MOUSEMOVE fwKeys:0000 xPos:406 yPos:50
  &lt;01304&gt; 000608FC S WM_NCHITTEST xPos:520 yPos:283
  &lt;01305&gt; 000608FC R WM_NCHITTEST nHittest:HTCLIENT
  &lt;01306&gt; 000608FC P WM_TIMER wTimerID:4096 tmprc:00000000
  &lt;01307&gt; 000608FC S WM_NCHITTEST xPos:520 yPos:283
  &lt;01308&gt; 000608FC R WM_NCHITTEST nHittest:HTCLIENT
  &lt;01309&gt; 000608FC S WM_NCHITTEST xPos:520 yPos:283
  &lt;01310&gt; 000608FC R WM_NCHITTEST nHittest:HTCLIENT
  &lt;01311&gt; 000608FC S WM_NCHITTEST xPos:521 yPos:281
  &lt;01312&gt; 000608FC R WM_NCHITTEST nHittest:HTCLIENT
  </code></pre>