Compartilhar via


IInputMethod3::SetIMMActiveContext (Compact 2013)

3/28/2014

Implement this method 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
    [in] Handle of the window control that has changed context.
  • bOpen
    TRUE indicates the IME is on; otherwise, this parameter is FALSE.
  • dwConversion
    IME conversion mode current status.
  • dwSentence
    IME sentence mode current status.
  • hkl
    [in] Handle to the current active keyboard layout.

Return Value

Return S_OK to indicate success; otherwise, return the appropriate HRESULT value to indicate that it was not successful.

Requirements

Header

sip.h

Library

uuid.lib

sysgen

SYSGEN_SOFTKB

See Also

Reference

IInputMethod3
IInputMethod3::Deselect
IInputMethod3::GetInfo
IInputMethod3::Hiding
IInputMethod3::InputContextChange
IInputMethod3::ReceiveSipInfo
IInputMethod3::RegisterCallback
IInputMethod3::RegisterCallback2
IInputMethod3::RegisterCallback3
IInputMethod3::Select
IInputMethod3::SetImData
IInputMethod3::Showing
IInputMethod3::UserOptionsDlg