输入法位置
来源:互联网 发布:网络漏洞有哪些 编辑:程序博客网 时间:2024/06/11 19:24
//将输入面板上移50,开启输入法
SIPINFO sipInfo = new SIPINFO(0);
SipGetInfo(ref sipInfo);
originalRect = new RECT();
originalRect.Left = sipInfo.rcSipRect.X;
originalRect.Top = sipInfo.rcSipRect.Y;
originalRect.Right = sipInfo.rcSipRect.Right;
originalRect.Bottom = sipInfo.rcSipRect.Height;
RECT newRect = new RECT();
newRect.Left = sipInfo.rcSipRect.X;
newRect.Top = sipInfo.rcSipRect.Y - 50;
newRect.Right = sipInfo.rcSipRect.Right;
newRect.Bottom = sipInfo.rcSipRect.Height - 50;
SipSetDefaultRect(ref newRect);
sipClsid = inputPanel1.InputMethods[1].Clsid.GetHashCode();
IntPtr pointClsid = new IntPtr(sipClsid);
if (SipGetCurrentIM(ref pointClsid))
{
SipSetCurrentIM(ref pointClsid);
}
pointClsid = IntPtr.Zero;
SipShowIM(SIPF_ON);
[DllImport("coredll.dll")]
public extern static void SipShowIM(uint dwFlag);
[DllImport("coredll.dll")]
public extern static bool SipSetDefaultRect(ref RECT rectf);
[DllImport("coredll.dll")]
public extern static bool SipSetCurrentIM(ref IntPtr cslid);
[DllImport("coredll.dll")]
public extern static bool SipGetCurrentIM(ref IntPtr cslid);
[DllImport("coredll")]
public extern static bool SipGetInfo(ref SIPINFO sipInfo);
- 输入法位置
- 自定义输入法窗口位置
- 输入法相关文件源码位置
- 输入法任意位置与大小
- C++获取输入法名字,调整输入法候选框位置
- 【教你改变输入法到位置】
- CEF3(2171) 输入法位置不对的问题
- android 点击editview以外位置,隐藏输入法
- ibus输入法窗口位置异常左下角
- Mac 输入法原文件的安装位置
- windows mobile 调整修改输入法面板大小和位置
- wince 5.0 eVC 4.0设置输入法选项窗口的位置
- windows客户端开发--如何修复输入法提示框位置不正确
- SublimeText中输入法光标位置不对的解决方法
- Android 输入法在页面中显示方式位置变化
- 输入法
- 输入法
- 输入法
- Java订单号(时间加流水号)
- PO,POJO,VO,DAO,BO等
- XML解析
- C#读写XML的基本方法
- oracle空值查询 为null的column;
- 输入法位置
- Java学习之Iterator(迭代器)的一般用法 (转)
- 办公软件技巧
- servlet输出JavaScript中文乱码解决
- 我们偷偷的变老了
- VIM常用命令及技巧
- “公母老虎”取名大全
- 内核访问外设I/O资源的方式
- 配置apache虚拟机(ip访问和域名访问)