运行环境:Wince 5.0
开发环境: VS 2005
语言:C++
int SipEnumIM( IMENUMPROC pEnumIMProc );
该函数枚举当前存在的输入法
int SipEnumIMProc( IMENUMINFO* pIMInfo );
回调函数,配合SipEnumIM函数使用
BOOL SipGetCurrentIM( CLSID* pClsid );
该函数返回当前输入法的类识别符(CLSID)
BOOL SipGetInfo(SIPINFO* pSipInfo);
该函数返回输入面板状态,包括区域、坐标等信息
BOOL SipRegisterNotification( HWND hWnd );
该函数注册一个能接收软输入面板通知的窗口
BOOL SipSetCurrentIM( CLSID* pClsid );
该函数切换输入法
BOOL SipSetDefaultRect( RECT* pRect );
该函数设置输入面板的缺省尺寸和位置
BOOL SipSetInfo( SIPINFO* pSipInfo );
该函数设置输入面板状态,包括区域、坐标等信息
BOOL SipShowIM( DWORD dwFlag );
显示或隐藏输入面板
DWORD SipStatus(void);
确定输入面板是否启动
使用API函数:
SipShowIM
Platform Builder for Microsoft Windows CE 5.0
SipShowIM
This function shows or hides the currently active software-based input panel window. An application must call this function to display the software-based input panel and its current input method.
BOOL SipShowIM(
- DWORD dwFlag
- );
Parameters
dwFlag
[in] Specifies whether to show or hide the current software-based input panel window. The following table shows the possible flags; it is one of the following flags.
Value | Description |
---|---|
SIPF_ON | Shows the software-based input panel window. |
SIPF_OFF | Hides the software-based input panel window. |
Return Values
TRUE indicates success. When this function fails, it returns an HRESULT error code.
Remarks
When this function is called, the software-based input panel notifies the input method (IM) of the appropriate action to take, which is whether to adopt a hidden or visible state.
On devices that have a limited display area, an application can call SipShowIM to hide the software-based input panel and increase the display area for output.
Requirements
OS Versions: Windows CE 2.10 and later.
Header: Sipapi.h.
Link Library: Coredll.lib.
以上:摘自微软官网
此函数的头文件:#include "Sipapi.h"