wParam The low-order word indicates whether various virtual keys are down. This parameter can be one or more of the following values.
| Value | Description |
|---|---|
| MK_CONTROL | The CTRL key is down. |
| MK_LBUTTON | The left mouse button is down. |
| MK_MBUTTON | The middle mouse button is down. |
| MK_RBUTTON | The right mouse button is down. |
| MK_SHIFT | The SHIFT key is down. |
| MK_XBUTTON1 | Windows 2000: The first X button is down. |
| MK_XBUTTON2 | Windows 2000: The second X button is down. |
The high-order word indicates the distance the wheel is rotated, expressed in multiples or divisions of WHEEL_DELTA, which is 120. A positive value indicates that the wheel was rotated forward, away from the user; a negative value indicates that the wheel was rotated backward, toward the user.
本文详细解析了wParam参数中低序字节指示的各种虚拟按键状态,包括Ctrl、Shift键及鼠标左右键等的状态信息,并且介绍了高序字节如何表示鼠标滚轮的旋转距离,该距离以WHEEL_DELTA的倍数或分数形式给出。
9283

被折叠的 条评论
为什么被折叠?



