我用如下代码打开微软拼音输入法,并打开软键盘。但打开后无法关闭,请问该如何操作?
打开输入法代码:
[DllImport ("coredll.dll")]
public extern static Int32 ImmSimulateHotKey (IntPtr hWnd, Int32 dwHotKeyID);
Microsoft.WindowsCE.Forms.InputPanel systemInputPanel = new Microsoft.WindowsCE.Forms.InputPanel ();
systemInputPanel.Enabled = true;
ImmsimulateHotKey (Handle, 0x10);
打开输入法后,使用ImmsimulateHotKey (Handle, 0x10) 则无法再关闭微软拼音的输入法状态条。
使用systemInputPanel.Enabled = false 也只能关闭软键盘,无法关闭微软拼音的输入法状态条。
请问该如何关闭呢?