Compartilhar via


IInputMethod2::SetIMMActiveContext (Compact 2013)

3/28/2014

This method receives the current state of the Input Method Editor (IME).

Syntax

HRESULT SetIMMActiveContext(
  HWND hwnd, 
  BOOL bOpen,
  DWORD dwConversion, 
  DWORD dwSentence, 
  DWORD hkl
); 

Parameters

  • hwnd
    Handle of window control that has changed context.
  • bOpen
    Specifies whether the IME is on. TRUE indicates the IME is on; otherwise, this parameter is FALSE.
  • dwConversion
    The current IME conversion mode status.
  • dwSentence
    The current IME sentence mode status.
  • hkl
    A handle to the current active keyboard layout.

Return Value

Returns S_OK to indicate success. Returns the appropriate HRESULT value to indicate failure.

Requirements

Header

sip.h

Library

uuid.lib

sysgen

SYSGEN_SOFTKB

See Also

Reference

IInputMethod2