ImmAssociateContext function (immdev.h)

Associates the specified input context with the specified window. By default, the operating system associates the default input context with each window as it is created.

Note  To specify a type of association, the application should use the ImmAssociateContextEx function.
 

Syntax

HIMC ImmAssociateContext(
       HWND unnamedParam1,
       HIMC unnamedParam2
);

Parameters

unnamedParam1

unnamedParam2

Return value

Returns the handle to the input context previously associated with the window.

Remarks

When associating an input context with a window, an application must remove the association before destroying the input context. One way to do this is to save the handle and reassociate it to the default input context with the window.

Requirements

Requirement Value
Minimum supported client Windows XP [desktop apps only],East Asian language support installed.
Minimum supported server Windows Server 2003 [desktop apps only]
Target Platform Windows
Header immdev.h (include Immdev.h, Windows.h)
Library Imm32.lib
DLL Imm32.dll

See also

ImmAssociateContextEx

Input Method Manager

Input Method Manager Functions