设定鼠标移动方式

lyingbo 2011-04-28 11:41:00

怎么设定系统的鼠标移动方式是相对坐标,或者是绝对坐标

通过设定以后,我在WM_MOUSEMOVE消息中得到的CPoint坐标是相对坐标;
然后这个相对是跟什么的相对,是指跟上一次鼠标坐标的相对移动向量么?

谢谢您的回复~~~
...全文
69 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
lyingbo 2011-04-28
  • 打赏
  • 举报
回复
[Quote=引用 1 楼 visualeleven 的回复:]
C/C++ code
afx_msg void OnMouseMove(
UINT nFlags,
CPoint point
);
point
Specifies the x- and y-coordinate of the cursor. These coordinates are always relative to the upper-left corner of ……
[/Quote]

谢谢你,我懂你意思了~~are always
lyingbo 2011-04-28
  • 打赏
  • 举报
回复
[Quote=引用 2 楼 q342210738 的回复:]
引用 1 楼 visualeleven 的回复:
C/C++ code
afx_msg void OnMouseMove(
UINT nFlags,
CPoint point
);
point
Specifies the x- and y-coordinate of the cursor. These coordinates are always relative to the up……
[/Quote]

通过设定相对移动方式,在OnMouseMove里面得到的这个point 的值是相对上一次鼠标位置的移动坐标而不是relative to the upper-left corner of the window.
lyingbo 2011-04-28
  • 打赏
  • 举报
回复
[Quote=引用 1 楼 visualeleven 的回复:]
C/C++ code
afx_msg void OnMouseMove(
UINT nFlags,
CPoint point
);
point
Specifies the x- and y-coordinate of the cursor. These coordinates are always relative to the upper-left corner of ……
[/Quote]

我的意思就是:
通过设定相对移动方式,在OnMouseMove里面得到的这个point 的值是相对上一次鼠标位置的移动坐标
Eleven 2011-04-28
  • 打赏
  • 举报
回复
afx_msg void OnMouseMove(
UINT nFlags,
CPoint point
);
point
Specifies the x- and y-coordinate of the cursor. These coordinates are always relative to the upper-left corner of the window.

2,641

社区成员

发帖
与我相关
我的任务
社区描述
VC/MFC 硬件/系统
社区管理员
  • 硬件/系统社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧