Virtual-Key Codes(虚拟键码)

本文详细介绍了系统中使用的虚拟键码,包括符号常量名、十六进制值及对应的鼠标和键盘等效物,主要涉及键盘、浏览器、应用程序、滚动、菜单和搜索等操作。
摘要由CSDN通过智能技术生成

The following table shows the symbolic constant names, hexadecimal values, and mouse or keyboard equivalents for the virtual-key codes used by the system. The codes are listed in numeric order.

Constant/value Description
VK_LBUTTON 0x01

Left mouse button

VK_RBUTTON 0x02

Right mouse button

VK_CANCEL 0x03

Control-break processing

VK_MBUTTON 0x04

Middle mouse button (three-button mouse)

VK_XBUTTON1 0x05

X1 mouse button

VK_XBUTTON2 0x06

X2 mouse button

- 0x07

Undefined

VK_BACK 0x08

BACKSPACE key

VK_TAB 0x09

TAB key

- 0x0A-0B

Reserved

VK_CLEAR 0x0C

CLEAR key

VK_RETURN 0x0D

ENTER key

- 0x0E-0F

Undefined

VK_SHIFT 0x10

SHIFT key

VK_CONTROL 0x11

CTRL key

VK_MENU 0x12

ALT key

VK_PAUSE 0x13

PAUSE key

VK_CAPITAL 0x14

CAPS LOCK key

VK_KANA 0x15

IME Kana mode

VK_HANGUEL 0x15

IME Hanguel mode (maintained for compatibility; use VK_HANGUL)

VK_HANGUL 0x15

IME Hangul mode

- 0x16

Undefined

VK_JUNJA 0x17

IME Junja mode

VK_FINAL 0x18

IME final mode

VK_HANJA 0x19

IME Hanja mode

VK_KANJI 0x19

IME Kanji mode

- 0x1A

Undefined

VK_ESCAPE 0x1B

ESC key

VK_CONVERT 0x1C

IME convert

VK_NONCONVERT 0x1D

IME nonconvert

VK_ACCEPT 0x1E

IME accept

VK_MODECHANGE 0x1F

IME mode change request

VK_SPACE 0x20

SPACEBAR

VK_PRIOR 0x21

PAGE UP key

VK_NEXT 0x22

PAGE DOWN key

VK_END 0x23

END key

VK_HOME 0x24

HOME key

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值