ImmAssociateContext (Windows CE 5.0)

Send Feedback

This function associates the specified input context with the specified window.

HIMC ImmAssociateContext(HWNDhWnd,HIMChIMC);


  • hWnd
    [in] Handle to the window to be associated with the input context.
  • hIMC
    [in] Handle to the input context.

Return Values

The handle to the input context previously associated with the window indicates success.


If an application associates an input context with a window, the application must remove that association before destroying the input context. One way to do this is to save and re-associate the handle to the default input context with the window.

If the hIMC parameter is NULL, the ImmAssociateContext function removes any association the window may have with an input context. By default, the system associates the default input context with each window as it is created.

An application can specify only the default input context or NULL.


OS Versions: Windows CE .NET 4.0 and later.
Header: Imm.h.
Link Library: Coreimm.lib.

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.