显示隐藏桌面、任务栏、开始菜单

HWND hTaskBar=FindWindow("Shell_TrayWnd",NULL);//find taskbar handle
HWND hDeskIcon=FindWindow("Progman",NULL); //find desktop icons
HWND hStartMenuIcon=FindWindow("Button",NULL); //find startmenu icons
    


if(bshow)
{
ShowWindow(hTaskBar,SW_SHOW);
ShowWindow(hDeskIcon,SW_SHOW);
ShowWindow(hStartMenuIcon,SW_SHOW);
}
else{
ShowWindow(hTaskBar,SW_HIDE);
ShowWindow(hDeskIcon,SW_HIDE);
ShowWindow(hStartMenuIcon,SW_HIDE);
}

转自:https://blog.csdn.net/ych121/article/details/79221253

猜你喜欢

转载自blog.csdn.net/sz76211822/article/details/81908846