CPoint oldPoint,newPoint;

 oldPoint.x = 10;
 oldPoint.y = 10;
 ClientToScreen(&oldPoint); //将相对当前窗口10,10这个点转换成这个点相对于屏幕的距离,那么x 和 y的值是窗口到屏幕的距离加上10的
 SetCursorPos(oldPoint.x,oldPoint.y);
// ClientToScreen(&oldPoint);
 

 mouse_event(MOUSEEVENTF_RIGHTDOWN,0,0,0,0);
 mouse_event(MOUSEEVENTF_RIGHTUP,0,0,0,0);

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-07-30
  • 2022-12-23
  • 2021-11-05
  • 2021-05-07
  • 2021-05-21
  • 2021-12-27
猜你喜欢
  • 2022-12-23
  • 2022-02-01
  • 2022-12-23
  • 2022-12-23
  • 2022-01-24
相关资源
相似解决方案