ImAssociateInstance
This function associates the specified IM Instance with the specified window. When a window is created, the system associates the default IM Instance with that. So applications can change the IM Instance to their own IM Instance which was created by calli ng ImCreateInstance. If hIMI is NULL, this funcion removes the association of the IM instance from the specified window.
Format:
APIRET APIENTRY ImAssociateInstance(HWND hWnd, HIMI hIMI, PHIMI phIMI)
Parameters:
hWnd(input)
Zero is successful. Others are errors.
Remarks:
This api must be called in the same thread which calls the corresponding ImCreateInstance.