虚拟键码 | 对应值(Hex) | 对应值(Dec) | 对应键 |
VK_LBUTTON | 0x01 | 1 | 鼠标左键 |
VK_RBUTTON | 0x02 | 2 | 鼠标右键 |
VK_CANCEL | 0x03 | 3 | Cancel |
VK_MBUTTON | 0x04 | 4 | 鼠标中键 |
VK_XBUTTON1 | 0x05 | 5 | X1 鼠标按钮(触摸板左键?) |
VK_XBUTTON2 | 0x06 | 6 | X2 鼠标按钮(触摸板右键?) |
VK_BACK | 0x08 | 8 | Backspace |
VK_TAB | 0x09 | 9 | Tab |
VK_CLEAR | 0x0C | 12 | Clear(NumLock关闭时的数字键盘5) |
VK_RETURN | 0x0D | 13 | Enter |
VK_SHIFT | 0x10 | 16 | Shift |
VK_CONTROL | 0x11 | 17 | Ctrl |
VK_MENU | 0x12 | 18 | Alt |
VK_PAUSE | 0x13 | 19 | Pause |
VK_CAPITAL | 0x14 | 20 | Caps Lock |
VK_KANA | 0x15 | 21 | (IME)假名模式 |
VK_HANGEUL | 0x15 | 21 | 保持兼容性;使用VK_HANGUL的 |
VK_HANGUL | 0x15 | 21 | (IME)韩文模式 |
VK_JUNJA | 0x17 | 23 | (IME)Junja模式 |
VK_FINAL | 0x18 | 24 | (IME)最终模式 |
VK_HANJA | 0x19 | 25 | (IME)朝鲜语汉字模式 |
VK_KANJI | 0x19 | 25 | (IME)汉字模式 |
VK_IME_OFF | 0x1A | 26 | (IME)关闭 |
VK_ESCAPE | 0x1B | 27 | Esc |
VK_CONVERT | 0x1C | 28 | (IME)转换 |
VK_NONCONVERT | 0x1D | 29 | (IME)nonconvert |
VK_ACCEPT | 0x1E | 30 | (IME)接受 |
VK_MODECHANGE | 0x1F | 31 | (IME)模式更改请求 |
VK_SPACE | 0x20 | 32 | Space |
VK_PRIOR | 0x21 | 33 | Page Up |
VK_NEXT | 0x22 | 34 | Page Down |
VK_END | 0x23 | 35 | End |
VK_HOME | 0x24 | 36 | Home |
VK_LEFT | 0x25 | 37 | Left Arrow |
VK_UP | 0x26 | 38 | Up Arrow |
VK_RIGHT | 0x27 | 39 | Right Arrow |
VK_DOWN | 0x28 | 40 | Down Arrow |
VK_SELECT | 0x29 | 41 | Select |
VK_PRINT | 0x2A | 42 | |
VK_EXECUTE | 0x2B | 43 | Execute |
VK_SNAPSHOT | 0x2C | 44 | Print Screen |
VK_INSERT | 0x2D | 45 | Insert |
VK_DELETE | 0x2E | 46 | Delete |
VK_HELP | 0x2F | 47 | Help |
0x30 | 48 |
虚拟键码 键盘消息(初稿)
最新推荐文章于 2023-11-30 11:10:23 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)