How to Find Out if the Taskbar’s Auto Hide Feature is On

The easiest and fastest way to find out if the Windows taskbar’s auto hide feature is on is to use the Windows SHAppBarMessage() function. Here’s the Object Pascal code port:

uses ShellAPI;
  ...
function TaskbarAutoHide: Boolean;
var
  ABData: TAppBarData;
begin
  ABData.cbSize := SizeOf(ABData);
  Result := ((SHAppBarMessage(ABM_GETSTATE, ABData) and ABS_AUTOHIDE) > 0);
end;

Tags: , , , , , ,

No Comments Yet

You can be the first to comment!

Leave a comment

OpenID Login

Standard Login