以编程方式移动文本输入面板(tabtip) [英] Programmatically moving the Text Input Panel (tabtip)

查看:131
本文介绍了以编程方式移动文本输入面板(tabtip)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,

我在c#winForms应用程序中调用了tabtip.exe以允许用户输入来自计算机的文本/数字

I have called up tabtip.exe from within my c# winForms application to allow the user to enter in text/numbers

。这是在没有安装键盘的Windows 8.1平板电脑上。

from the computer. This is on a Windows 8.1 tablet that has no keyboard installed.

我遇到的问题是我想以编程方式移动屏幕键盘,以便它不是

The problem I'm running into is that I would like to programmatically move the on-screen keyboard so that it is not

在表单上的一些输入控件之上。 tabtip始终显示在屏幕的底部1/3到1/2。在

on top of some of my input controls on the form. The tabtip always shows in the bottom 1/3rd to 1/2 of the screen. In

为了可视化隐藏的项目,我必须手动拖动键盘,使其不覆盖它们。

order to visualize the hidden items, I have to manually drag the keyboard so that it is not covering them.

我尝试过这样的代码:

IntPtr wKB = FindWindow(" IPTip_Main_Window",null);

        

            int X =   10023;  //停靠顶部

            uint WM_COMMAND = 0x0111;

            PostMessage(wKB,WM_COMMAND,MAKEWPARAM(X,0),0);

            
$


        }
        private int MAKEWPARAM(int l,int h)

        {

            return(l& 0xFFFF)| (h << 16);

        }

IntPtr wKB = FindWindow("IPTip_Main_Window", null);
        
            int X =   10023;  //dock top
            uint WM_COMMAND = 0x0111;
            PostMessage(wKB, WM_COMMAND, MAKEWPARAM(X, 0), 0);
            

        }
        private int MAKEWPARAM(int l, int h)
        {
            return (l & 0xFFFF) | (h << 16);
        }

此代码应将窗口移动到屏幕顶部。但它不起作用。 很多人我听说他们无法弄清楚这是怎么做的。有没有人知道如何移动这个窗口?

This code should move the window to the top of the screen. However it does not work.  Many people I have heard that they cannot figure out how this is done. Does anybody know of a way to move this window?

谢谢

Mike

推荐答案


这代码应将窗口移动到屏幕顶部。但它不起作用。 很多人我听说他们无法弄清楚这是怎么做的。有没有人知道如何移动这个窗口?

This code should move the window to the top of the screen. However it does not work.  Many people I have heard that they cannot figure out how this is done. Does anybody know of a way to move this window?

谢谢

Mike

Tablet PC输入面板作为服务的子进程运行,它具有比用户程序更高的完整性级别,并且它不能发送任何(或非常有限的一组)消息。您可以参考以下页面查看有关它的更多讨论。

http://stackoverflow.com/questions/1770670/how-do-i-control-the-text-input-panel-programmatically-tabtip-exe-in-windows-v

The Tablet PC Input Panel is running as a child process of a service it has higher integrity level than user programs, and it cannot be sent any (or a very limited set of) messages to. You can refer to the following page to see more discussion about it. http://stackoverflow.com/questions/1770670/how-do-i-control-the-text-input-panel-programmatically-tabtip-exe-in-windows-v

我希望它有所帮助。

问候,

Regards,


这篇关于以编程方式移动文本输入面板(tabtip)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆