[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]
[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.
[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]