An application sends the IMC_SETOPENSTATUS message to an IME window to open or close the current IME.
msg = (UINT) WM_IME_CONTROL;
wParam = (WPARAM) IMC_SETOPENSTATUS;
lParam = (LPARAM) bOpen;
Returns zero if successful, nonzero otherwise.
When processing this message, the IME window changes the current input context.
Windows NT: Requires version 4.0 or later.
Windows: Requires Windows 95 or later.
Windows CE: Unsupported.
Input Method Editor Overview, Input Method Editor Messages