Important:
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.
A version of this page is also available for
4/8/2010

The system sends Input Method Editor (IME) window messages to the window that has focus when certain events occur. For example, the system sends the WM_IME_SETCONTEXTmessage when a window is activated. IME–unaware windows pass these messages to the DefWindowProcfunction, which sends them to the corresponding default IME window. IME–aware windows either process these messages or forward them to their own IME windows.

To have an IME window carry out an action, use the WM_IME_CONTROLmessage. To have the IME notify an application about changes to the composition string, use the WM_IME_COMPOSITIONmessage. Use the WM_IME_NOTIFYmessage for general changes to the status of IME windows.

To process the WM_IME_COMPOSITIONmessage, applications test the bits in the lParamparameter and call the ImmGetCompositionStringfunction to retrieve the indicated string or data.

See Also