Soft Key Virtual Key Codes
4/8/2010
You can navigate to the soft keys by using hardware controls. For soft keys that display a menu, the menu is displayed immediately upon the application receiving the device code VK_DOWN. For non–menu soft keys that do not display a menu, the action defined by the soft key occurs immediately upon the application receiving the device code VK_UP. Each application is responsible for handling the code to enable custom menus.
Note
Beginning with Windows Mobile 6.5.3, soft keys are replaced by touchable tiles on Windows Mobile Professional phones.
The following table shows the soft key virtual key (VK) codes.
Soft key | Device VK code | Emulator VK code |
---|---|---|
Left soft key (SK1) |
VK_SOFT1 |
VK_F1 |
Right soft key (SK2) |
VK_SOFT2 |
VK_F2 |