打开和关闭输入法软键盘 .
2012-07-17 09:50
344 查看
.netcf还是没有支持的函数,那么,就调用api吧,函数名为SipShowIM。
msdn中这样描述:
Header: Sipapi.h.
Link Library: Coredll.lib.
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.
C#调用:
[c-sharp]
view plaincopyprint?
#region import 软键盘
public static uint SIPF_OFF = 0x00;//软键盘关闭
public static uint SIPF_ON = 0x01;//软键盘打开
[DllImport("coredll.dll")]
public extern static void SipShowIM(uint dwFlag);
#endregion
msdn中这样描述:
SipShowIM
Requirements
OS Versions: Windows CE 2.10 and later.Header: Sipapi.h.
Link Library: Coredll.lib.
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. |
[c-sharp]
view plaincopyprint?
#region import 软键盘
public static uint SIPF_OFF = 0x00;//软键盘关闭
public static uint SIPF_ON = 0x01;//软键盘打开
[DllImport("coredll.dll")]
public extern static void SipShowIM(uint dwFlag);
#endregion
[c-sharp] view plaincopyprint? SipShowIM(SIPF_ON); //或者干脆 SipShowIM(0x01); SipShowIM(SIPF_ON); //或者干脆 SipShowIM(0x01);
相关文章推荐
- 打开和关闭输入法软键盘
- Android软键盘(1)---输入法界面管理(打开/关闭/状态获取)
- 怎么监听Android软键盘的打开和关闭
- 切换输入法半角全角(打开关闭输入法)
- Android自动打开和关闭软键盘
- Android打开输入法和关闭输入法
- Android在横屏状态下,打开软键盘(输入法),中文模式没有候选栏的解决方案
- Qt5.9.0中打开与关闭系统软键盘
- iOS 中打开或关闭软键盘时调整 UIScrollView 的大小
- Android软键盘的打开和关闭的监控
- Win8环境WPF打开和关闭软键盘
- C++实现PDA中打开和关闭软键盘的方法
- iPhone 中打开或关闭软键盘时调整 UIScrollView 的大小
- Android代码自动打开和关闭软键盘
- [Android] 软键盘打开与关闭的方法
- android 打开和关闭输入法
- 安卓输入法界面的关闭/打开
- Android输入法界面管理(打开/关闭/状态获取)
- Util:打开或关闭软键盘
- Android输入法界面管理(打开/关闭/状态获取)