IActiveIMMApp::Activate M...     IActiveIMMApp::AssociateC...     IActiveIMMApp Interface    
Web Workshop (Miscellaneous)

IActiveIMMApp::AssociateContext Method


Associates the specified input context with the specified window.

Syntax

HRESULT AssociateContext(
    HWND hWnd,
    HIMC hIME,
    HIMC *phPrev);

Parameters

hWnd
[in] Handle of the window to be associated with the input context.
hIME
[in] Handle to the input context. If hIME is NULL, the method removes any association the window may have with an input context.
phPrev
[out] Address of the handle to the input context previously associated with the window.

Return Value

Returns S_OK if successful, or an error code otherwise.

Remarks

This method maps to the ImmAssociateContext function documented in the Microsoft® Platform Software Development Kit (SDK). Non-MSDN link

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



Back to topBack to top

Did you find this topic useful? Suggestions for other topics? Write us!

© 1999 Microsoft Corporation. All rights reserved. Terms of use.