WINCE输入法控制API

运行环境: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

Send Feedback

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.

 
  1. BOOL SipShowIM( 
  2.   DWORD dwFlag
  3. );

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.

ValueDescription
SIPF_ONShows the software-based input panel window.
SIPF_OFFHides 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"

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值