那就是这个程序在后台了,用鼠标hook,可参考以前的帖子。

解决方案 »

  1.   

    The GetCursorPos function retrieves the cursor's position, in screen coordinates. BOOL GetCursorPos(
      LPPOINT lpPoint   // address of structure for cursor position
    );
     
      

  2.   

    POINT pos;
    GetCursorPos(&pos);
    pos即为鼠标的坐标。
      

  3.   

    ok,谢谢各位,不过全局的鼠标钩子要写dll的。
    我想到一个更好的方法:用journalrecord钩子,这样就可以不用写dll了。然后用把得到的坐标ClientToScreen转换一下。