WM_IME_SELECT

This message will be sent to UI window when system is about to change current IME.

wParam

TRUE if the IME is newly selected; FALSE if the IME is unselected.

lParam

Handle of the keyboard layout for the IME.

The system IME class uses this message to create a new UI window and destroy an old UI window for application or the system. DefWindowProc responds to this message by passing information to the default IME window, which sends the message to its UI window.