Share via


IInputMethodEx::SetIMMActiveContext

Send Feedback

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

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 Values

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

Pocket PC: Pocket PC 2000 and later
Smartphone: None
OS Versions: Windows CE 3.0 and later
Header: sip.h

See Also

Input Panel Interfaces | IInputMethodEx

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.