Associates the specified input context with the specified window.
HRESULT AssociateContext( [in] HWND hWnd, [in] HIMC hIME, [out] HIMC *phPrev );
A handle to the window to associate with the input context.
A handle to the input context. If hIME is NULL, the method removes any association the window might have had with an input context.
The address of the handle to the input context that was associated previously with the window.
Returns S_OK if successful, or an error value otherwise.
By default, the system associates the default input context with each window as it is created.
Minimum supported client
Minimum supported server
|Windows 2000 Server|
|Internet Explorer 5.0|