简单问题:鼠标的移动会触发哪些消息和函数?在线等。

解决方案 »

  1.   

    WM_MOUSEMOVEafx_msg void OnMouseMove( UINT nFlags, CPoint point );ParametersnFlagsIndicates whether various virtual keys are down. This parameter can be any combination of the following values: MK_CONTROL   Set if the CTRL key is down.
    MK_LBUTTON   Set if the left mouse button is down.
    MK_MBUTTON   Set if the middle mouse button is down.
    MK_RBUTTON   Set if the right mouse button is down.
    MK_SHIFT   Set if the SHIFT key is down. 
    pointSpecifies the x- and y-coordinate of the cursor. These coordinates are always relative to the upper-left corner of the window.
      

  2.   

    可以用spy++看看,会产生什么消息
      

  3.   

    WM_NCMOUSEMOVE
    WM_MOUSEMOVE