WM_MOUSEMOVE message

67 篇文章 0 订阅

完整内容参考

http://msdn.microsoft.com/en-us/library/windows/desktop/ms645616(v=vs.85).aspx


MK_LBUTTON, which is 0x0001 它的值是1


17 out of 36 rated this helpful Rate this topic

Posted to a window when the cursor moves. If the mouse is not captured, the message is posted to the window that contains the cursor. Otherwise, the message is posted to the window that has captured the mouse.

A window receives this message through its WindowProc function.

C++
#define WM_MOUSEMOVE                    0x0200

Parameters

wParam

Indicates whether various virtual keys are down. This parameter can be one or more of the following values.

Value Meaning
MK_CONTROL 0x0008

The CTRL key is down.

MK_LBUTTON 0x0001

The left mouse button is down.

MK_MBUTTON 0x0010

The middle mouse button is down.

MK_RBUTTON 0x0002

The right mouse button is down.

MK_SHIFT 0x0004

The SHIFT key is down.

MK_XBUTTON1 0x0020

The first X button is down.

MK_XBUTTON2 0x0040

The second X button is down.

 

lParam

The low-order word specifies the x-coordinate of the cursor. The coordinate is relative to the upper-left corner of the client area.

The high-order word specifies the y-coordinate of the cursor. The coordinate is relative to the upper-left corner of the client area.

Return value

If an application processes this message, it should return zero.


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值