uses ShellAPI;
{
If the taskbar auto-hide feature is enabled, you get TRUE from
function "IsTaskBarautoHideOn".
}
function IsTaskbarAutoHideOn : boolean;
var
ABData : TAppBarData;
begin
ABData.cbSize := sizeof(ABData);
Result :=
(SHAppBarMessage(ABM_GETSTATE, ABData)
and ABS_AUTOHIDE) > 0;
end;