Platform SDK: International Features

WM_IME_CONTROL

The WM_IME_CONTROL message directs the IME window to carry out the requested command. An application uses this message to control the IME window created by the application.

To send this message, call the SendMessage function with the following parameters.

SendMessage( 
  (HWND) hWnd,              // handle to destination window 
  WM_IME_CONTROL,           // message to send
  (WPARAM) wParam,          // IME command
  (LPARAM) lParam          // command-specific data
);

Parameters

wParam
Specifies the command. This parameter can be one of the following values:

IMC_CLOSESTATUSWINDOW
IMC_GETCANDIDATEPOS
IMC_GETCOMPOSITIONFONT
IMC_GETCOMPOSITIONWINDOW
IMC_GETSTATUSWINDOWPOS
IMC_OPENSTATUSWINDOW
IMC_SETCANDIDATEPOS
IMC_SETCOMPOSITIONFONT
IMC_SETCOMPOSITIONWINDOW
IMC_SETSTATUSWINDOWPOS

lParam
Specifies command-specific data. Its format depends on the value of the wParam parameter. For more information, refer to the documentation for each command.

Return Values

The message returns a command-specific value.

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, IMC_CLOSESTATUSWINDOW, IMC_GETCANDIDATEPOS, IMC_GETCOMPOSITIONFONT, IMC_GETCOMPOSITIONWINDOW, IMC_GETSTATUSWINDOWPOS, IMC_OPENSTATUSWINDOW, IMC_SETCANDIDATEPOS, IMC_SETCOMPOSITIONFONT, IMC_SETCOMPOSITIONWINDOW, IMC_SETSTATUSWINDOWPOS