The input panel gives an input method a pointer to IIMCallbackEx through the IInputMethod interface. The IM calls the methods in IMCallback to send keystrokes to the current application and to change the icon that displays on the Input Panel button. The following table describes the methods in IIMCallBackEx.
IIMCallBackEx Method |
Description |
SetImInfo | Called by the IM to change the bitmap shown on the Input Panel button, to change the visible state of the input panel, or to notify the input panel when the IM has changed the size, placement, or docked status of the input panel window. |
SendVirtualKey | Called by the IM to simulate a keystroke or a virtual key. The key event is sent to the window that currently has the focus. |
SendCharEvents | Sends Unicode characters from the IM to the window with the focus, while also determining which WM_KEYDOWN and WM_KEYUP messages the window should receive. |
SendString | Called by the IM to send an entire string to the window that currently has the focus |
SendAlternatives | Called by the IM to send an “Alternatives” to the window that currently has the focus; that is, the window that would have received keyboard input if a key had been pressed on an external keyboard. |
Note Except for SendAlternatives, all the IIMCallBackEx methods are identical to the IIMCallBack methods.