HWND hTaskBar=FindWindow("Shell_TrayWnd",NULL);//find taskbar handle
ShowWindow(hTaskBar,SW_HIDE);
HWND hDeskIcon=FindWindow("Progman",NULL); //find desktop icons
ShowWindow(hDeskIcon,SW_HIDE);
HWND hwndDesk=GetDesktopWindow();
if (INVALID_HANDLE_VALUE==hwndDesk)
{
MessageBox(NULL,"error","error",MB_OK | MB_ICONERROR);
}
if (INVALID_HANDLE_VALUE==hDeskIcon)
{
MessageBox(NULL,"error","error",MB_OK | MB_ICONERROR);
}
VC隐藏任务栏和桌面图标
最新推荐文章于 2023-09-15 22:25:19 发布