Partager via


IInputMethodEx::SetIMMActiveContext

4/8/2010

Implement SetIMMActiveContext to receive the current state of the Input Method Editor (IME).

Syntax

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

Parameters

  • hwnd
    The handle of a window control that has changed context.
  • bOpen
    If set to TRUE, the IME is active; if set to FALSE, the IME is not active.
  • dwConversion
    The status of the current IME conversion mode.
  • dwSentence
    The status of the current IME sentence mode.
  • hkl
    A handle to the current active keyboard layout.

Return Value

An appropriate HRESULT value is returned.

Remarks

The SetIMMActiveContext interface to the input panel is exposed only through this method. The input panel calls this method when SetIMMActiveContext is called on a window control.

Requirements

Header sip.h
Windows Embedded CE Windows CE 3.0 and later
Windows Mobile Pocket PC 2000 and later

See Also

Reference

IInputMethodEx