ClientToScreen 我了解的用法

 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);

你可能感兴趣的:(client)