次の方法で共有


IIMCallback (Compact 2013)

3/28/2014

An input method (IM) is given a pointer to this interface by the software-based input panel (SIP) through the IInputMethod interface. The IM calls the methods in IIMCallback to send keystrokes to the current application and to change the icon that displays on the Input Panel button.

Methods

The following table lists the methods for IIMCallback.

Method

Description

SetImInfo

Called by the IM to change the bitmaps shown on the Input Panel button representing the current SIP, to change the visible state of the SIP, or to notify the SIP when the IM has changed the size, placement, or docked status of the SIP 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; that is, the window that would have received keyboard input if a key had been pressed on an external keyboard.

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; that is, the window that would have received keyboard input if a key had been pressed on an external keyboard.

Requirements

Header

sip.h

Library

uuid.lib

See Also

Reference

Software-based Input Panel Interfaces
IIMCallback::SendCharEvents
IIMCallback::SendString
IIMCallback::SendVirtualKey
IIMCallback::SetImInfo