Solved

Autohide Taskbar

Posted on 2001-06-24
13
579 Views
Last Modified: 2010-04-06
Hello how do i make the taskbar auto hide during runtime?
0
Comment
Question by:jchua
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 3
  • 3
  • +2
13 Comments
 
LVL 13

Expert Comment

by:Epsylon
ID: 6223505
This is not possible.
0
 
LVL 4

Expert Comment

by:jsweby
ID: 6223606
Yes it is. Button1 hides the taskbar, button2 shows it again.

procedure TForm1.Button1Click(Sender: TObject);
var
   hTaskbar: THandle;
begin
     hTaskbar := FindWindow('Shell_TrayWnd', Nil);
     ShowWindow(hTaskbar, SW_HIDE);
end;

procedure TForm1.Button2Click(Sender: TObject);
var
   hTaskbar: THandle;
begin
     hTaskbar := FindWindow('Shell_TrayWnd', Nil);
     ShowWindow(hTaskbar, SW_SHOWNORMAL);
end;

J.
0
 
LVL 13

Expert Comment

by:Epsylon
ID: 6223664
That is 'hiding' the taskbar, not 'turning on autohide', which I think jchua wants...
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 4

Expert Comment

by:jsweby
ID: 6223672
Epsylon, I think I see your point although I'm sure jchua is probably just looking for a way to auto-hide the taskbar when his program runs, then (maybe) show it again when it finishes. You're right though, I've found no way of actually turning the "auto-hide" feature on and off.

J.
0
 
LVL 22

Expert Comment

by:Mohammed Nasman
ID: 6223783
Hello

 Epsylon, I don't think that's Imposible, I think that can done by SHAppBarMessage API with ABM_SETAUTOHIDEBAR, but I really didn't that, take a look at microsoft site
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/shellcc/platform/Shell/Messages/ABM_SETAUTOHIDEBAR.asp

and look at the win32 sdk help file for SHAppBarMessage api

Mohammed Nasman
0
 
LVL 13

Accepted Solution

by:
Epsylon earned 150 total points
ID: 6223826
Mohammed, that won't work 'cause the taskbar is protected from that.
0
 
LVL 22

Expert Comment

by:Mohammed Nasman
ID: 6223841
I saw a code for access the task bar, but it was not in delphi, and I lost the link cuz i'm not interested in vc++, i didn't remember if that api or funcation, it called accesstaskbar or register
0
 
LVL 13

Expert Comment

by:Epsylon
ID: 6224023
It is NOT POSSIBLE!

I've been searching the net for this a year ago and did NOT find a solution.
0
 
LVL 4

Expert Comment

by:jsweby
ID: 6224036
So then, my solution posted above is the nearest you can get to auto-hiding the taskbar. I think this is a better way anyway, you shouldn't really change the user's settings, just hide & show the taskbar when you want to.

J.
0
 
LVL 22

Expert Comment

by:Mohammed Nasman
ID: 6225749
Epsylon I think you are right, as I told I dont' have a good knowledage about these API, and I thought it done by that

Mohammed
0
 
LVL 17

Expert Comment

by:inthe
ID: 6226319
quote from microsoft:

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/shellcc/shellcc/shell/Shell_Int/Taskbar.asp

"
The taskbar supports two display options: Auto Hide and Always On Top. To set these options, the user
must open the taskbar shortcut menu, click Properties, and select or clear the Auto Hide check box or
the Always On Top check box. There is no way to set these options programmatically.

"
you can only make your own shappbar's autohide by using setstate function.
0
 
LVL 26

Expert Comment

by:Russell Libby
ID: 8685394
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:

Accept Epsylon's comment as answer

Please leave any comments here within the next seven days.
 
PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!
 
Thank you,
Russell

EE Cleanup Volunteer
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…
Suggested Courses
Course of the Month5 days, 23 hours left to enroll

626 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question