IMR_QUERYCHARPOSITION notification code

Notifies an application 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 parameter settings as shown below.

LRESULT IMR_QUERYCHARPOSITION

Parameters

wParam

Set to IMR_QUERYCHARPOSITION.

lParam

Pointer to an IMECHARPOSITION structure that contains the position of the character in the composition window.

Return Value

Returns a nonzero value if the application fills the IMECHARPOSITION structure. Otherwise, the command returns 0.

Remarks

An application that draws the composition string itself, instead of relying on the IME, is responsible for filling in all the members of the IMECHARPOSITION structure. Otherwise, the application should pass the command to DefWindowProc or ImmIsUIMessage if it has its own IME user interface window.

Requirements

Requirement Value
Minimum supported client
Windows 2000 Professional [desktop apps only]
Minimum supported server
Windows 2000 Server [desktop apps only]
Header
Imm.h (include Windows.h)

See also

Input Method Manager

Input Method Manager Commands

IMECHARPOSITION

ImmIsUIMessage

WM_IME_REQUEST