 |
MapVirtualKey ..msdn Add comment W32 Constants Translate this page |
 |
 |
|
Translates (maps) a virtual-key code into a scan code or character value, or translates a scan code into a virtual-key code. |
 |
 |
| Code examples: |
 |
|
|
 |
 |
| Declaration: |
 |
 |
UINT WINAPI MapVirtualKey(
__in UINT uCode,
__in UINT uMapType
);
|
 |
 |
 |
| FoxPro declaration: |
 |
 |
DECLARE INTEGER MapVirtualKey IN user32;
LONG uCode,;
LONG uMapType
|
 |
 |
 |
| Parameters: |
 |
uCode [in]
The virtual key code or scan code for a key. How this value is interpreted depends on the value of the uMapType parameter.
uMapType [in]
The translation to be performed. The value of this parameter depends on the value of the uCode parameter. |
 |
 |
| Return value: |
 |
| The return value is either a scan code, a virtual-key code, or a character value, depending on the value of uCode and uMapType. If there is no translation, the return value is zero. |
 |
 |
| Usage: |
 |
nScanCode = MapVirtualKey( m.nVirtKey, 0 )
|
 |
 |
| My comment: |
 |
| To specify a handle to the keyboard layout to use for translating the specified code, use the MapVirtualKeyEx function. |
 |
 |
| Word Index links for the MapVirtualKey : |
 |
|
|
 |
 |
| Translate this page: |
 |
|
 |
 |
| • |
 |
| Created: | 2011-01-05 12:33:29 | | Modified: | 2011-01-05 12:35:58 | Visited in last 7 days: 19 |