 |
ActivateKeyboardLayout ..msdn Add comment W32 Constants Translate this page |
 |
 |
|
The ActivateKeyboardLayout function sets the input locale identifier (formerly called the keyboard layout handle) for the calling thread or the current process. The input locale identifier specifies a locale as well as the physical layout of the keyboard. |
 |
 |
| Code examples: |
 |
|
|
 |
 |
| Declaration: |
 |
 |
HKL ActivateKeyboardLayout(
HKL hkl, // input locale identifier
UINT Flags // input locale identifier options
);
|
 |
 |
 |
| FoxPro declaration: |
 |
 |
DECLARE INTEGER ActivateKeyboardLayout IN user32;
INTEGER hkl,;
INTEGER Flags
|
 |
 |
 |
| Parameters: |
 |
hkl
[in] Input locale identifier to be activated.
Flags
[in] Specifies how the input locale identifier is to be activated. |
 |
 |
| Return value: |
 |
| If the function succeeds, the return value is the previous input locale identifier. Otherwise, it is zero. |
 |
 |
| Usage: |
 |
* save current layout
hCurrentLayout = GetKeyboardLayout(0)
= ActivateKeyboardLayout(m.hLayout, 0)
|
 |
 |
| My comment: |
 |
| Windows 2000/XP: Activates the specified locale identifier for the entire process and sends the WM_INPUTLANGCHANGE message to the current thread`s Focus or Active window. |
 |
 |
| Word Index links for the ActivateKeyboardLayout : |
 |
|
|
 |
 |
| Translate this page: |
 |
|
 |
 |
| • |
 |
| Created: | 2002-02-08 21:48:44 | | Modified: | 2009-02-13 10:00:23 | Visited in last 7 days: 71 |