Platform SDK: International Features

IMC_GETCOMPOSITIONWINDOW

An application sends the IMC_GETCOMPOSITIONWINDOW command to an IME window to get the position of the composition window. Because the IME may adjust the position of a composition window, an application uses this command to get the actual position to decide whether to reposition the window.

To send this command, use the WM_IME_CONTROL message with wParam and lParam set as follows.

Parameters

wParam
Set to IMC_GETCOMPOSITIONWINDOW.
lParam
Pointer to the COMPOSITIONFORM structure that receives the position of the composition window.

Return Values

Returns zero if successful, nonzero otherwise.

Remarks

The returned position is in window coordinates relative to the window having the current input focus.

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 Commands, COMPOSITIONFORM