procedure TForm1.Button1Click(Sender: TObject);
var
AHandle: THandle;
begin
AHandle := FindWindow('Shell_TrayWnd', nil);
ShowWindow(AHandle, SW_HIDE); //隐藏任务栏
end;
procedure TForm1.Button2Click(Sender: TObject);
var
AHandle: THandle;
begin
AHandle := FindWindow('Shell_TrayWnd', nil);
ShowWindow(AHandle, SW_RESTORE); //显示任务栏
end;