或者只能用postmessage???
哪位大侠指点一二,谢了先!

解决方案 »

  1.   

    [old]
    mouse_event.[suggestion]
    SendInput
      

  2.   

    mouse_event
    The mouse_event function synthesizes mouse motion and button clicks. Windows NT/2000 or later: This function has been superseded. Use SendInput instead.VOID mouse_event(
      DWORD dwFlags,         // motion and click options
      DWORD dx,              // horizontal position or change
      DWORD dy,              // vertical position or change
      DWORD dwData,          // wheel movement
      ULONG_PTR dwExtraInfo  // application-defined information
    );
      

  3.   

    谢谢, 2000和XP下mouse_event还好用吧还有个问题,
    如何取当前光标的坐标呢:)