1. Home
  2. Computing & Technology
  3. Delphi Programming

Is Windows taskbar's auto hide feature enabled?

By , About.com Guide

Need to know if the Windows Taskbar's auto hide feature is enabled, using Delphi code:

~~~~~~~~~~~~~~~~~~~~~~~~~
uses ShellAPI;

(*
   Returns TRUE if taskbar auto hide is on.

   if IsTaskBarautoHideOn then
   begin
     // auto hide is ON
   end;
*)
function IsTaskbarAutoHideOn : boolean;
var
   ABData : TAppBarData;
begin
   ABData.cbSize := sizeof(ABData) ;
   Result :=
     (SHAppBarMessage(ABM_GETSTATE, ABData)
      and ABS_AUTOHIDE) > 0;
end;
~~~~~~~~~~~~~~~~~~~~~~~~~

Delphi tips navigator:
» How to play sounds on the PC Speaker
« Delphi String to Enum

Explore Delphi Programming
About.com Special Features

Holiday Central

What to eat, where to go, fun things to do and how to save money on the perfect gifts. More >

Family Tech Center

Stay connected and entertained with reviews on tips on the latest HDTVs, cellphones and more. More >

  1. Home
  2. Computing & Technology
  3. Delphi Programming
  4. Coding Delphi Applications
  5. Delphi Tips and Tricks
  6. 2003 Delphi Tips
  7. Is Windows taskbar's auto hide feature enabled?

©2009 About.com, a part of The New York Times Company.

All rights reserved.