IMC_GETCANDIDATEPOS

An application sends the IMC_GETCANDIDATEPOS message to the IME window to retrieve the position of the candidate window. IME can adjust the position of a candidate window. An application can get the real position of candidate window to decide whether it needs to reposition it.

If successful, the return value is zero. Otherwise, it is nonzero.

lParam
Address of a CANDIDATEFORM structure that receives the position of the candidate window.

The return value in the buffer specifies the client coordinates of the focus window of an application. The UI window receives this message.