vc++获取当前鼠标坐标

POINT point;
GetCursorPos(&point);

header:

Declared in Winuser.h, include Windows.h

原文地址:https://www.cnblogs.com/fuge/p/3200560.html