次の方法で共有


IInputMethodEx::SetIMMActiveContext (Compact 2013)

3/28/2014

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 software-based input panel (SIP) is exposed only through this method. The SIP calls this method when SetIMMActiveContext is called on a window control.

Requirements

Header

sip.h

sysgen

SYSGEN_SOFTKB

See Also

Reference

IInputMethodEx