Edit_GetInputMode
This function obtains the input mode of the current window.
int Edit_GetInputMode(
HWND hwndCtl,
BOOL fActual
);
Parameters
- hwndCtl
The window for which the input mode will be obtained. - fActual
A Boolean value indicating which input mode is retrieved.Value Description 1 (True) Retrieves the actual input mode if the window has focus, otherwise retrieves the default input mode. 0 (False) Retrieves the default input mode.
Return Values
- EIM_SPELL
Spell input mode. - EIM_AMBIG
Ambiguous mode if input engine supports this mode, otherwise defaults to Spell input mode. - EIM_NUMBERS
Numbers mode. - EIM_TEXT
The user's preferred mode. This is the user's last Spell or Ambiguous mode selection in an EIM_TEXT edit control. - EIM_MASK
Mask to access mode. - EIM_MODE(x)
Macro to access mode. - EIMMF_SETCLR_SHIFT
In. Used to set/clear Shift. - EIMMF_SETCLR_CAPSLOCK
In. Used to set/clear CapsLock. - EIMMF_SHIFT
In/Out. Shift state. - EIMMF_CAPSLOCK
In/Out. CapsLock state. - EIMMF_MASK
Mask to access modifier flags. - EIM_MODIFIERS(x)
Macro to access modifier flags.
Requirements
Smartphone: Smartphone 2002 and later.
OS Versions: Windows CE 3.0 and later.
Header: windowsm.h.
Send Feedback on this topic to the authors