Partager via


Handling IME Window Messages

A version of this page is also available for

Windows Embedded CE 6.0 R3

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_SETCONTEXT message when a window is activated. IME–unaware windows pass these messages to the DefWindowProc function, 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_CONTROL message. To have the IME notify an application about changes to the composition string, use the WM_IME_COMPOSITION message. Use the WM_IME_NOTIFY message for general changes to the status of IME windows.

To process the WM_IME_COMPOSITION message, applications test the bits in the lParam parameter and call the ImmGetCompositionString function to retrieve the indicated string or data.

See Also

Reference

ImmGetCompositionString
WM_IME_COMPOSITION
WM_IME_CONTROL
WM_IME_NOTIFY
WM_IME_SETCONTEXT

Other Resources

DefWindowProc