Get Taskbar height

Posted by @ntoine on May 03, 2005

Hi,

I'm trying to make an application that shows up, with it's bottom on the taskbar, but I don't know how to get the taskbar's height. The standart height in WinXP is 30, but you can change it.

I allready found out how to check if the autohide function is on:

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

Does anyone know how to check the height of the taskbar?

Thanks in advance

@ntoine

Related Articles and Replies