Compatible with old Delphi!
 
Ultimate Pack

Hide windows 95 taskbar - System - Tips & Tricks - Greatis Delphi Pages

Taskbar windows name is 'Shell_TrayWnd'. So use Win32 function FindWindow to find Windows95 Taskbar, and Win32 function ShowWindow to it hide or restore.
For example:

procedure TForm1.Button1Click(Sender: TObject);
var
  WindowHandle: HWnd;
begin
  WindowHandle:=FindWindow('Shell_TrayWnd','');
  if WindowHandle<>0 then 
    ShowWindow(WindowHandle,SW_HIDE);
end;

procedure TForm1.Button2Click(Sender: TObject);
var
  WindowHandle: HWnd;
begin
  WindowHandle:=FindWindow('Shell_TrayWnd','');
  if WindowHandle<>0 then 
    ShowWindow(WindowHandle,SW_RESTORE);
end;
Related topics
Hide start button
Disable Close button on form caption

For more
Win32 programmer's reference

Download source


Delphi books recommended by Amazon.com

More Delphi programming books on Amazon.com


Copyright © 1998-2013 Greatis Software