|
- HWND hDlg;
- hDlg = FindWindow(_T("SipWndClass"),NULL); //隐藏背景
- if (hDlg != NULL)
- {
- ShowWindow(hDlg, SW_HIDE);
- }
- hDlg = FindWindow(_T("MS_SIPBUTTON"),NULL); //隐藏背景
- if (hDlg != NULL)
- {
- ShowWindow(hDlg, SW_HIDE);
- }
- hDlg = FindWindow(_T("MS_HHTaskBar"),NULL); //隐藏背景
- if (hDlg != NULL)
- {
- ShowWindow(hDlg, SW_HIDE);
- }
- hDlg = FindWindow(_T("menu_worker"),NULL); //隐藏背景
- if (hDlg != NULL)
- {
- ShowWindow(hDlg, SW_HIDE);
- }
- SipShowIM(SIPF_OFF);
- HIMC hIMC = ImmGetContext(hDlg); //hWnd为当前窗口句柄
- ImmSetOpenStatus(hIMC, FALSE); //关闭中文输入法
- ImmReleaseContext(hDlg, hIMC);
复制代码 |
|