Magazine |
| | Community |
| | Workshop |
| | Tools & Samples |
| | Training |
| | Site Info |
|
|
||||||||
|
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).
By default, the system associates the default input context with each window as it is created.
Does this content meet your programming needs? Write us!
© 1998 Microsoft Corporation. All rights reserved. Terms of use.