title: Win32 WM_SETCURSOR, WM_MOUSEMOVE always in pair?
body: <p>I'm working on a Win32 control. There could be hundreds of "items" on this control. Those are not windows, but internal objects (eg: rectangles). Depending on the mouse position I want to change the mouse cursor. That is fine, I can use WM_SETCURSOR.</p>
  
  <p>At the same time based on mouse move I want to display a status bar which shows details about the object currently under the mouse. For that I can use WM_MOUSEMOVE.</p>
  
  <p>Because there could be hundreds of items, traveling all of them to find one under the mouse, well it's not efficient, especially two times (one for set cursor, one for mouse move).</p>
  
  <p>To make it short, do you know if WM_SETCURSOR and WM_MOUSEMOVE are <strong>ALWAYS</strong> in pair? In that case I can calculate what I want during WM_SETCURSOR. The other option would be to set the mouse cursor during WM_MOUSEMOVE, but as far as I know that it's not a good solution (will flicker).</p>
  
  <p>Thanks</p>