Hiding/showing the Windows taskbar (Views: 27)
Problem/Question/Abstract: Hiding/showing the Windows taskbar Answer: Use these functions to hide or show the Windows taskbar programmatically from your Delphi application: procedure hideTaskbar; var wndHandle: THandle; wndClass: array[0..50] of Char; begin StrPCopy(@wndClass[0], 'Shell_TrayWnd'); wndHandle := FindWindow(@wndClass[0], nil); ShowWindow(wndHandle, SW_HIDE); // This hides the taskbar end; procedure showTaskbar; var wndHandle: THandle; wndClass: array[0..50] of Char; begin StrPCopy(@wndClass[0], 'Shell_TrayWnd'); wndHandle := FindWindow(@wndClass[0], nil); ShowWindow(wndHandle, SW_RESTORE); // This restores the taskbar end; |