windows键按下消息——WM_KEYDOWN

WM_KEYDOWN

键按下消息

#define WM_KEYDOWN                      0x0100
  • Parameters
  • wParam

The virtual-key code of the nonsystem key. See Virtual-Key Codes.

Virtual-Key Codes.虚拟按键编码,表示哪个键被按下

  • lParam
    The repeat count, scan code, extended-key flag, context code, previous key-state flag, and transition-state flag, as shown following.
BitsMeaning
0-15The repeat count for the current message. The value is the number of times the keystroke is autorepeated as a result of the user holding down the key. If the keystroke is held long enough, multiple messages are sent. However, the repeat count is not cumulative.
16-23The scan code. The value depends on the OEM.
24Indicates whether the key is an extended key, such as the right-hand ALT and CTRL keys that appear on an enhanced 101- or 102-key keyboard. The value is 1 if it is an extended key; otherwise, it is 0.
25-28Reserved; do not use.
29The context code. The value is always 0 for a WM_KEYDOWN message.
30The previous key state. The value is 1 if the key is down before the message is sent, or it is zero if the key is up.
31The transition state. The value is always 0 for a WM_KEYDOWN message.
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值