Como habilitar e desabilitar barra de tarefas do windows ?
Para habilitar e desabilitar a barra de tarefas do windows use as seguintes procedures:
procedure hideTaskbar; // DESABILITA
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; // HABILITA
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;