2011-09-12 28 views

回答

0

我回答了類似的問題here,但它是爲移動6.5窗口;但我想它會在Win 7的工作太..下面是代碼隱藏鍵盤圖標:

//Declare Win API method 
[DllImport("coredll.dll", EntryPoint="FindWindowW", SetLastError=true)] 
private static extern IntPtr FindWindow(string lpClassName, string lpWindowName) 

[DllImport("coredll.dll", SetLastError=true)] 
[return: MarshalAs(UnmanagedType.Bool)] 
private static extern bool SetWindowPos(IntPtr hWnd, IntPtr hWndInsertAfter, int x, int y, int cx, int cy, uint uFlags); 

[DllImport("coredll.dll", SetLastError = true)] 
    internal static extern bool MoveWindow(IntPtr hWnd, int X, int Y, int nWidth, int nHeight, bool bRepaint); 

//Call FindWindow and SetWindowPos to hide keyboard icon 
IntPtr hWnd = FindWindow(Nothing, "MS_SIPBUTTON"); 
SetWindowPos(hWnd, 1, 0, 0, 0, 0, &H80); 
0

見我的回答here。通過設置註冊表值,您可以禁用屏幕上的鍵盤縮略圖爲某個特定應用

0

如果要隱藏特定的方法後,虛擬鍵盤,你可以只寫this.Focus()做到這一點;

相關問題