procedure SetTaskBarShowState(AShowState:Integer);
var
WndHandle:THandle;
WndClass:Array[0..50] of Char;
begin
StrPCopy(@WndClass[0],'Shell_TrayWnd');
WndHandle:=FindWindow(@WndClass[0],Nil);
ShowWindow(WndHandle,AShowState);
end;
{$R *.dfm}
procedure TForm1.Timer1Timer(Sender: TObject);
begin
Self.Caption :=IntToStr(Mouse.CursorPos.Y)+':'+IntToStr(Screen.WorkAreaHeight);
if Mouse.CursorPos.Y>Screen.WorkAreaHeight then//SystemParametersInfo(SPI_GETWORKAREA,0,Nil,0) then
SetTaskBarShowState(SW_SHOW)
else
SetTaskBarShowState(SW_HIDE);
end;
procedure SetTaskBarShowState(AShowState:Integer);
var
WndHandle:THandle;
WndClass:Array[0..50] of Char;
begin
StrPCopy(@WndClass[0],'Shell_TrayWnd');
WndHandle:=FindWindow(@WndClass[0],Nil);
ShowWindow(WndHandle,AShowState);
end;
{$R *.dfm}
procedure TForm1.Timer1Timer(Sender: TObject);
begin
Self.Caption :=IntToStr(Mouse.CursorPos.Y)+':'+IntToStr(Screen.WorkAreaHeight);
if Mouse.CursorPos.Y>Screen.WorkAreaHeight then//SystemParametersInfo(SPI_GETWORKAREA,0,Nil,0) then
SetTaskBarShowState(SW_SHOW)
else
SetTaskBarShowState(SW_HIDE);
end;