How to hide and show the Windows Taskbar

'

This useful Delphi hint and source code, shows you how to find and then hide or show the Windows Taskbar.

procedure TForm1.HideTaskBar(Sender: TObject);
var
 H : HWND;
begin
    H := FindWindow('Shell_TrayWnd', nil);
    ShowWindow(H, SW_HIDE);
    Sleep(2000);
    ShowWindow(H, SW_SHOW);
end;

Google
Web www.Delphi-Central.com
Delphi Central - Delphi Programming Tutorials, Hints and Tips