Computer Knowledge and Tutorials weblog, Computer knowledge, windows, linux, open source, programming, web apps

How to disable WIndows XP taskbar using Delphi

TO disable taskbar, you can use this procedure

procedure HideTaskbarWindows();
var hTaskBar : Thandle;
begin
hTaskBar := FindWindow(’Shell_TrayWnd’,Nil);
ShowWindow(hTaskBar,Sw_Hide);
end;

While to reenable the taskbar, you could use

procedure ShowTaskbarWindows();
var hTaskBar : Thandle;
begin
hTaskBar := FindWindow(’Shell_TrayWnd’,Nil);
ShowWindow(hTaskBar,Sw_Normal);
end;

Tags: ,

Google
 

Leave a Reply

405 views