VC++ 에서 마우스나 키보드 이벤트 핸들러 함수 인자로 virtual key code 가 전달되며, 아래 리스트와 같다.
Constant/value | Description |
---|---|
|
Left mouse button |
|
Right mouse button |
|
Control-break processing |
|
Middle mouse button (three-button mouse) |
|
X1 mouse button |
|
X2 mouse button |
|
Undefined |
|
BACKSPACE key |
|
TAB key |
|
Reserved |
|
CLEAR key |
|
ENTER key |
|
Undefined |
|
SHIFT key |
|
CTRL key |
|
ALT key |
|
PAUSE key |
|
CAPS LOCK key |
|
IME Kana mode |
|
IME Hanguel mode (maintained for compatibility; use VK_HANGUL) |
|
IME Hangul mode |
|
Undefined |
|
IME Junja mode |
|
IME final mode |
|
IME Hanja mode |
|
IME Kanji mode |
|
Undefined |
|
ESC key |
|
IME convert |
|
IME nonconvert |
|
IME accept |
|
IME mode change request |
|
SPACEBAR |
|
PAGE UP key |
|
PAGE DOWN key |
|
END key |
|
HOME key |
|
LEFT ARROW key |
|
UP ARROW key |
|
RIGHT ARROW key |
|
DOWN ARROW key |
|
SELECT key |
|
PRINT key |
|
EXECUTE key |
|
PRINT SCREEN key |
|
INS key |
|
DEL key |
|
HELP key |
|
0 key |
|
1 key |
|
2 key |
|
3 key |
|
4 key |
|
5 key |
|
6 key |
|
7 key |
|
8 key |
|
9 key |
|
Undefined |
|
A key |
|
B key |
|
C key |
|
D key |
|
E key |
|
F key |
|
G key |
|
H key |
|
I key |
|
J key |
|
K key |
|
L key |
|
M key |
|
N key |
|
O key |
|
P key |
|
Q key |
|
R key |
|
S key |
|
T key |
|
U key |
|
V key |
|
W key |
|
X key |
|
Y key |
|
Z key |
|
Left Windows key (Natural keyboard) |
|
Right Windows key (Natural keyboard) |
|
Applications key (Natural keyboard) |
|
Reserved |
|
Computer Sleep key |
|
Numeric keypad 0 key |
|
Numeric keypad 1 key |
|
Numeric keypad 2 key |
|
Numeric keypad 3 key |
|
Numeric keypad 4 key |
|
Numeric keypad 5 key |
|
Numeric keypad 6 key |
|
Numeric keypad 7 key |
|
Numeric keypad 8 key |
|
Numeric keypad 9 key |
|
Multiply key |
|
Add key |
|
Separator key |
|
Subtract key |
|
Decimal key |
|
Divide key |
|
F1 key |
|
F2 key |
|
F3 key |
|
F4 key |
|
F5 key |
|
F6 key |
|
F7 key |
|
F8 key |
|
F9 key |
|
F10 key |
|
F11 key |
|
F12 key |
|
F13 key |
|
F14 key |
|
F15 key |
|
F16 key |
|
F17 key |
|
F18 key |
|
F19 key |
|
F20 key |
|
F21 key |
|
F22 key |
|
F23 key |
|
F24 key |
|
Unassigned |
|
NUM LOCK key |
|
SCROLL LOCK key |
|
OEM specific |
|
Unassigned |
|
Left SHIFT key |
|
Right SHIFT key |
|
Left CONTROL key |
|
Right CONTROL key |
|
Left MENU key |
|
Right MENU key |
|
Browser Back key |
|
Browser Forward key |
|
Browser Refresh key |
|
Browser Stop key |
|
Browser Search key |
|
Browser Favorites key |
|
Browser Start and Home key |
|
Volume Mute key |
|
Volume Down key |
|
Volume Up key |
|
Next Track key |
|
Previous Track key |
|
Stop Media key |
|
Play/Pause Media key |
|
Start Mail key |
|
Select Media key |
|
Start Application 1 key |
|
Start Application 2 key |
|
Reserved |
|
Used for miscellaneous characters; it can vary by keyboard. For the US standard keyboard, the ';:' key |
|
For any country/region, the '+' key |
|
For any country/region, the ',' key |
|
For any country/region, the '-' key |
|
For any country/region, the '.' key |
|
Used for miscellaneous characters; it can vary by keyboard. For the US standard keyboard, the '/?' key |
|
Used for miscellaneous characters; it can vary by keyboard. For the US standard keyboard, the '`~' key |
|
Reserved |
|
Unassigned |
|
Used for miscellaneous characters; it can vary by keyboard. For the US standard keyboard, the '[{' key |
|
Used for miscellaneous characters; it can vary by keyboard. For the US standard keyboard, the '\|' key |
|
Used for miscellaneous characters; it can vary by keyboard. For the US standard keyboard, the ']}' key |
|
Used for miscellaneous characters; it can vary by keyboard. For the US standard keyboard, the 'single-quote/double-quote' key |
|
Used for miscellaneous characters; it can vary by keyboard. |
|
Reserved |
|
OEM specific |
|
Either the angle bracket key or the backslash key on the RT 102-key keyboard |
|
OEM specific |
|
IME PROCESS key |
|
OEM specific |
|
Used to pass Unicode characters as if they were keystrokes. The VK_PACKET key is the low word of a 32-bit Virtual Key value used for non-keyboard input methods. For more information, see Remark in KEYBDINPUT, SendInput, WM_KEYDOWN, and WM_KEYUP |
|
Unassigned |
|
OEM specific |
|
Attn key |
|
CrSel key |
|
ExSel key |
|
Erase EOF key |
|
Play key |
|
Zoom key |
|
Reserved |
|
PA1 key |
|
Clear key |
.///218
'VisualStudio.C++.C# > 코딩팁,함수활용,단편' 카테고리의 다른 글
다른 프로그램과 메시지 송수신 - FindWindow이용 대상윈도우핸들로 직접 전송. (0) | 2015.06.06 |
---|---|
다른 프로그램과 메시지 송수신. - RegisterWindowMessage (0) | 2015.06.05 |
키보드 입력처리. VC++ MFC 이용하는 경우. (0) | 2015.01.19 |
동적 메모리 할당. 변수,배열, new delete (0) | 2015.01.17 |
스레드 생성 방법 및 다중스레드 사용위한 필수 옵션 셋팅. VC++ (0) | 2015.01.10 |
댓글