Platform SDK: International Features

WM_IME_SELECT

The WM_IME_SELECT message is sent to an application when the system is about to change the current IME. An application that has created an IME window should pass this message to that window so that it can retrieve the keyboard layout handle for the newly selected IME.

A window receives this message through its WindowProc function.

LRESULT CALLBACK WindowProc(
  HWND hwnd,       // handle to window
  UINT uMsg,       // WM_IME_SELECT
  WPARAM wParam,   // selection indicator
  LPARAM lParam    // input locale identifier (HANDLE)
);

Parameters

wParam
Selection indicator. If TRUE, the specified IME is selected; if FALSE, the specified IME is no longer selected.
lParam
Input locale identifier associated with the IME.

Return Values

This message has no return value.

Remarks

The DefWindowProc function processes this message by passing the information to the default IME window.

Requirements

  Windows NT/2000: Requires Windows NT 4.0 or later.
  Windows 95/98: Requires Windows 95 or later.
  Header: Declared in Imm.h.

See Also

Input Method Editor Overview, Input Method Editor Messages, DefWindowProc