WM全屏

 // TODO: 在此添加控件通知處理程序代碼
 HWND hWndMenuWorker = ::FindWindow(TEXT("menu_worker"), NULL);
 if (NULL != hWndMenuWorker)
 {
  ::ShowWindow(hWndMenuWorker, SW_HIDE);
 }

 HWND hWndTaskBar = ::FindWindow(TEXT("HHTaskBar"), NULL);
 if (NULL != hWndTaskBar)
 {
  ::ShowWindow(hWndTaskBar, SW_HIDE);
 }

 // 如果需要的話,隱藏輸入法窗口
 SIPINFO sipInfo;
 memset(&sipInfo, 0, sizeof(SIPINFO));
 sipInfo.cbSize = sizeof(SIPINFO);
 ::SipGetInfo(&sipInfo);

 if ((sipInfo.fdwFlags & SIPF_ON) == SIPF_ON)
 {
  ::SipShowIM(SIPF_OFF);
 }

 // 隱藏“拼”按鈕
 HWND hWndSipButton = ::FindWindow(TEXT("MS_SIPBUTTON"), NULL);
 if (NULL != hWndSipButton)
 {
  ::ShowWindow(hWndSipButton, SW_HIDE);                           
 }

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章