Virtual Key Code

Source: Internet
Author: User
Tags delete key
VC (visual_c++) virtual key VK Value list keyboard VK key value list/* Virtual keys, Standard set*/Vk_lbutton             &NBS P                        0x01 Vk_rbutton       &N Bsp                             0x02 vk_cancel   &N Bsp                                0X03 Vk_mbu Tton                                 &NBSP ;   0x04 #define Vk_lbutton        0x01    //left mouse button #define Vk_rbutton        0x02    //right mouse button   #define VK_CANCEL         0x03    //ctrl + Break #defi NE vk_mbutton        0x04    //MouseKeys/not contiguous with L & Rbutton/#define Vk_back   &nbsp       0x08  //backspace key #define VK_TAB            0x09  //tab key #define Vk_clear          0x0c #define Vk_return         0x0D  //Enter # Define Vk_shift          0x10 #define Vk_control        0X11 #define Vk_menu           0x12  //alt key #define Vk_pause          0x13 #define Vk_ Capital        0x14  //caps Lock key   #define Vk_kana           0x15 #define Vk_hangeul        0x15/* Old name-should is here for compatibility */#define Vk_hangul &N Bsp       0x15 #define Vk_junja          0x17 #define Vk_final       &N Bsp  0x18 #define Vk_hanja          0x19 #define Vk_kanji          0x19 #define Vk_escape         0x1b  //ESC key #define Vk_convert        0X1C #define Vk_n Onconvert     0x1d #define VK_ACCEPT         0x1E #define Vk_modechange     0x1F # Define Vk_space          0x20  //Space #define Vk_prior          0X21  //page up key #define Vk_next           0x22  //page down key #define Vk_end   &NB Sp        0x23  //end key #define Vk_home           0x24  //home key #de Fine vk_left           0x25  /* Direction key * #define VK_UP             0x26 #define Vk_right          0X27 #define Vk_down           0x28 #def Ine Vk_select         0x29 #define Vk_print          0X2A #define Vk_execute        0X2B #define Vk_snapshot       0x2c  //print Screen key #define Vk_insert       & nbsp 0x2d  //insert key #define Vk_delete         0x2e  //delete key #define VK_HELP     &NBS P     0x2f/* Vk_0 thru Vk_9 are the same as ASCII ' 0 ' thru ' 9 ' (0x30-0x39) */* VK_A thru vk_z The are as ASCII ' A ' Thru ' Z ' (0x41-0x5a)/#define VK_LWIN           0x5b//left Winkey (104 keyboards only)   #def Ine Vk_rwin           0X5C//Right Winkey (104 keyboards only) #define VK_APPS           0x5d//appskey (104 keyboards only)   #define VK_NUMPAD0        0x60/keypad 0-9 #define VK_NUMPAD1        0x61 #define VK_NUMPAD2        0x62 #define VK_NUMPAD3        0X63 # Define VK_NUMPAD4        0x64 #define VK_NUMPAD5        0X65 #define VK_NUMPAD6 &N Bsp   &NBSp  0X66 #define VK_NUMPAD7        0x67 #define VK_NUMPAD8        0x68 #define V K_NUMPAD9        0x69 #define VK_MULTIPLY       0x6a/multiply #define VK_ADD     & nbsp      0X6B//Add #define Vk_separator      0X6C//except #define VK_SUBTRACT       0x 6D//minus #define VK_DECIMAL        0X6E//decimal #define Vk_divide         0x6f  # Define VK_F1             0x70/function key F1-f24 #define VK_F2           & nbsp 0x71 #define VK_F3             0x72 #define VK_F4             0x73 #define VK_F5             0x74 #define VK_F6             0x75 #define VK_F7             0x76 #define VK_F8             0x77 #deFine vk_f9             0x78 #define VK_F10            0x79 #de Fine vk_f11            0x7a #define VK_F12            0x7b #de Fine vk_f13            0x7c #define VK_F14            0x7d #de Fine Vk_f15            0x7e #define VK_F16            0x7f #de Fine vk_f17            0x80 #define VK_F18            0X81 #de Fine vk_f19            0x82 #define VK_F20            0x83 #de Fine vk_f21            0x84 #define VK_F22            0X85 #de Fine vk_f23            0x86 #define VK_F24            0x87 #de Fine Vk_numlock   &nbsp    0X90//num Lock key #define Vk_scroll         0x91//scroll Lock Key * * vk_l* & vk_r*- Left and right Alt, Ctrl and Shift virtual keys. * Used as parameters to Getasynckeystate () and Getkeystate (). * No other APIs or message would distinguish left and right keys in this way. * #define Vk_lshift          0xa0 #define Vk_rshift          0XA1 #defi NE vk_lcontrol        0XA2 #define Vk_rcontrol        0XA3 #define VK_LMENU           0XA4 #define VK_RMENU           0xa5 #if (winver >= 0x0400) #defin E vk_processkey      0xe5 #endif/* winver >= 0x0400 * #define VK_ATTN         &NBS P  0xf6 #define Vk_crsel           0XF7 #define Vk_exsel           0x F8 #define VK_EREOF           0XF9 #definE vk_play            0XFA #define Vk_zoom            0XFB #def Ine Vk_noname          0XFC #define VK_PA1             0xFD #define Vk_oem_clear       0xFE


Original address: https://www.cnblogs.com/liwenbin/archive/2012/06/30/2571489.html

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.