Platform SDK: International Features

IMR_QUERYCHARPOSITION

The IMR_QUERYCHARPOSITION command is sent when the selected IME needs information about the coordinates of a character in the composition string.

The application receives this command through the WM_IME_REQUEST message with wParam and lParam set as follows.

Parameters

wParam
Set to IMR_QUERYCHARPOSITION.
lParam
Pointer to an IMECHARPOSITION structure that contains the position of the character in the composition window.

Return Values

If the application filled the IMECHARPOSITION structure in lParam, return non-zero. Otherwise, return zero.

Remarks

Applications that draw the composition string themselves, rather than relying on the IME, are responsible for filling all the fields defined in the IMECHARPOSITION structure. Otherwise, this command should be passed on to DefWindowProc or ImmIsUIMessage if the application has its own IME UI window.

Requirements

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

See Also

Input Method Editor Overview, Input Method Editor Commands, WM_IME_REQUEST, DefWindowProc, ImmIsUIMessage, IMECHARPOSITION