[code lang=”delphi”]procedure TForm1.btnHideTaskBarClick(Sender: TObject);
Var
TaskBarHandle : Integer;
Begin
TaskBarHandle := FindWindow(‘Shell_TrayWnd’,Nil);
ShowWindow(TaskBarHandle, SW_HIDE);
End;
procedure TForm1.btnShowTaskBarClick(Sender: TObject);
Var
TaskBarHandle : Integer;
Begin
TaskBarHandle := FindWindow(‘Shell_TrayWnd’,Nil);
ShowWindow(TaskBarHandle, SW_SHOW);
//NOTE : You can also use this one to
//Refresh the TaskBar.
End;[/code]
[tags]Delphi, API[/tags]
0 Kommentare zu “Show Or Hide TaskBar”