IInputMethodEx::RegisterCallbackEx

Implement RegisterCallbackEx to receive a pointer to an IIMCallbackEx interface. An input method (IM) uses the IIMCallbackEx interface to send keystrokes to an application and to change the icon on the Input Panel button.

At a Glance

Header file: Sip.h
Platforms: Palm-size PC version 1.2
Windows CE Version: 2.10

Syntax

HRESULT RegisterCallbackEx (IIMCallback* pIMCallback);

Parameter

pIMCallback
Pointer to an IIMCallbackEx interface implemented in the input panel. The IM calls methods on this interface to send information back to the input panel.

Return Values

an appropriate HRESULT value is returned.

Remarks

The IIMCallbackEx interface to the input panel is exposed only through this method. The input panel calls this method during the initialization of the IM, along with Select, GetInfo, and ReceiveSipInfo.

See Also

IIMCallback, IInputMethod::GetInfo, IInputMethod::ReceiveSipInfo, IInputMethod::Select

IInputMethodEx:: SetIMMActiveContext

Implement SetIMMActiveContext to receive the current state of the IME

At a Glance

Header file: Sip.h
Platforms: Palm-size PC version 1.2
Windows CE Versions: 2.10

Syntax

HRESULT SetIMMActiveContext (HWND hwnd, BOOL bOpen, DWORD dwConversion, DWORD dwSentence, DWORD hkl);

Parameter

hwnd
The handle of Window control that has changed context.
bOpen
IF set to TRUE then the IME is on, otherwise it is FALSE.
dwConversion
The current IME conversion mode status.
dwSentence
The current IME sentese mode status.
hkl
A handle to the current active keyboard layout.

Return Values

An appropriate HRESULT value is returned.

Remarks

The SetIMMActiveContext interface to the input panel is exposed only through this method. The input panel calls this method when ImmSetActiveContext is called on a window control.