The WM_INPUTLANGCHANGE message is sent to the topmost affected window after an application’s input language has been changed. You should make any application-specific settings and pass the message to the DefWindowProc function, which passes the message to all first-level child windows. These child windows can pass the message to DefWindowProc to have it pass the message to their child windows, and so on.
WM_INPUTLANGCHANGE
charset = wParam;
hkl = (HKL) lParam;
An application should return nonzero if it processes this message.