hTaskbarWnd : THandle ;<br>begin <br>hTaskbarWnd := FindWindow('Shell_traywnd', ''); <br> SetWindowPos(hTaskbarWnd, 0, 0, 0, 0, 0, SWP_HIDEWINDOW);<br>end;<br>procedure TForm1.Button2Click(Sender: TObject); <br>//顯示 taskbarvar hTaskbarWnd : <br>THandle ;begin hTaskbarWnd := FindWindow('Shell_traywnd', ''); <br> SetWindowPos(hTaskbarWnd, 0, 0, 0, 0, 0, SWP_SHOWWINDOW);