IMC_SETCOMPOSITIONWINDOW

An application sends the IMC_SETCOMPOSITIONWINDOW message to the IME window to specify style of the composition window. In contrast to Windows 3.1, this message specifies the composition style of the current active input context. The IME user interface follows the style whenever it is given the input context.

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

lParam
Address of a COMPOSITIONFORM structure.

The IME user interface has a default style of composition window that is equal to the CFS_POINT style. If an application has not specified any composition style in its input context, the IME user interface retrieves the current caret position and window client area when it opens the composition window. It is in client coordinates. The UI window does not receive this message.