DelphiFAQ Home Search:

How to find out if the taskbar's auto hide feature is on

 

comments1 comments. Current rating: 4 stars (1 votes). Leave comments and/ or rate it.

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 { TaskbarAutoHide }
  ABData.cbSize := SizeOf(ABData);
  Result := ((SHAppBarMessage(ABM_GETSTATE, ABData) and ABS_AUTOHIDE)>0)
end; { TaskbarAutoHide }
You don't like the formatting? Check out SourceCoder then!

Comments:

2007-08-12, 18:39:08
vaughn from United States  
rating

 

 

Email address (not necessary):

Rate as
Hide my email when showing my comment.
Please notify me once a day about new comments on this topic.
Please provide a valid email address if you select this option.
 
It seems that you are
from Washington, US .

Info/ Feedback on this

Show city and country
Show country only
Hide my location
You can mark text as 'quoted' by putting [quote] .. [/quote] around it.
Please type in the code:
photo Add a picture:

Please do not post inappropriate pictures. Inappropriate pictures include pictures of minors and nudity. The owner of this web site reserves the right to delete such material.