GetCursorPos

来源:互联网 发布:java中几个Date的区别 编辑:程序博客网 时间:2024/05/03 09:26

windows API

下个MSDN 索引下就行知道了,
GetCursorPos

The GetCursorPos function retrieves the cursor's position, in screen coordinates.
函数返回光标在屏幕中的位置即光标在屏幕中的坐标
BOOL GetCursorPos(
LPPOINT lpPoint // cursor position
);

 

它返回的坐标是以你屏幕左上角的基点的.是按电脑屏幕来的

 

GetCursorPos获得的是相对于整个屏幕的坐标

原创粉丝点击