Share via


Edit_GetInputMode

4/8/2010

This function obtains the input mode of the current window.

Syntax

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 Value

  • 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

Header windowsm.h
Windows Embedded CE Windows CE 3.0 and later
Windows Mobile Smartphone 2002 and later

See Also

Reference

Shell Functions
Edit_SetInputMode