操作系统:Windows7
MSDN是这样描述WM_MOUSEWHEEL的lParam参数的.
lParam
The low-order word specifies the x-coordinate of the pointer, relative to the upper-left corner of the screen.
The high-order word specifies the y-coordinate of the pointer, relative to the upper-left corner of the screen.
如果拿lParam取坐标,然后再使用ScreenToClient进行转化,就会发现相对于窗口的坐标,在一个屏幕下,坐标是位于窗口内,而在另外一个屏幕内,则坐标乱套了.
最终还是得使用GetCursorPos()方法得到的坐标可靠.