Author: William Gerbert
Hiding/showing the Windows taskbar
Answer:
Use these functions to hide or show the Windows taskbar programmatically from your
Delphi application:
1 procedure hideTaskbar;
2 var3 wndHandle: THandle;
4 wndClass: array[0..50] of Char;
5 begin6 StrPCopy(@wndClass[0], 'Shell_TrayWnd');
7 wndHandle := FindWindow(@wndClass[0], nil);
8 ShowWindow(wndHandle, SW_HIDE); // This hides the taskbar9 end;
10 11 procedure showTaskbar;
12 var13 wndHandle: THandle;
14 wndClass: array[0..50] of Char;
15 begin16 StrPCopy(@wndClass[0], 'Shell_TrayWnd');
17 wndHandle := FindWindow(@wndClass[0], nil);
18 ShowWindow(wndHandle, SW_RESTORE); // This restores the taskbar19 end;