Windows api实现桌面任务栏隐藏\显示

//隐藏任务栏
HWND hWnd = ::FindWindow(TEXT("Shell_traywnd"),TEXT(""));
::SetWindowPos(hWnd,0,0,0,0,0,SWP_HIDEWINDOW);
//显示任务栏
HWND hWnd = ::FindWindow(TEXT("Shell_traywnd"),TEXT(""));
::SetWindowPos(hWnd,0,0,0,0,0,SWP_SHOWWINDOW);

 

转载于:https://www.cnblogs.com/Open-Source/p/5814390.html

你可能感兴趣的:(Windows api实现桌面任务栏隐藏\显示)