MFC中,鼠标左键点击的消息函数问题

来源:百度知道 编辑:UC知道 时间:2024/06/06 08:52:49

OnLButtonDown(UINT nFlags, CPoint point)
之中
point.x与point.y的值是以哪个为坐标参照系的
屏幕还是窗口呢?

point
Specifies the x- and y-coordinate of the cursor. These coordinates are always relative to the upper-left corner of the window.

窗口参考系.

指定了光标的x和y轴坐标。这些坐标通常是相对于窗口的左上角的。