Wikia

Delphi Programming

Hide Windows TaskBar (Code Snippet)

2,918pages on
this wiki
Talk0

The Windows Taskbar behaves like a normal window, so you can use the SW_ parameters on the ShowWindow function. You only need the Taskbar handle and you find it with FindWindow function

procedure TForm1.Button1Click((Sender: TObject);
begin
  ShowWindow(FindWindow('Shell_TrayWnd', nil), SW_HIDE);
end;  

Changing SW_HIDE to SW_SHOW will invert the process:

procedure TForm1.SetEditsColor(NewColor: TColor);
begin
  ShowWindow(FindWindow('Shell_TrayWnd', nil), SW_SHOW);
end;

See alsoEdit

External linksEdit


Code Snippets
DatabasesFiles and I/OForms/WindowsGraphicsNetworkingMath and AlgorithmsMiscellaneousMultimediaSystemVCL

Around Wikia's network

Random Wiki