Solved

Auto-hide taskbar

Posted on 1997-12-13
7
650 Views
Last Modified: 2013-12-19
Is there a way during unattended setup to set up the default
user to have an auto-hidden taskbar?

Or is there a way programmatically to set Auto Hide to
true by setting a registry variable?

We need to do something with several hundred machines,
so dopily clicking and pointing each one is OUT.
0
Comment
Question by:reverend
  • 2
  • 2
  • 2
  • +1
7 Comments
 
LVL 32

Accepted Solution

by:
jhance earned 100 total points
ID: 1569659
I haven't actually done this myself but the technique is to
use the SHAppBarMessage() function (header file is shellapi.h) and send an ABM_SETAUTOHIDEBAR message to the taskbar.
0
 

Author Comment

by:reverend
ID: 1569660
That's cute. But it doesn't work.

Can someone comment on this in more detail?

0
 
LVL 32

Expert Comment

by:jhance
ID: 1569661
Of course it works.  You need to be sure that you are sending the message to the right toolbar.  
0
Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

 

Author Comment

by:reverend
ID: 1569662
re: Can someone comment on this in more detail?

Please note the IN MORE DETAIL part?

I'm totally guessing that this is the kind of thing you are
talking about:

"abd.cbSize = sizeof(APPBARDATA);

      SHAppBarMessage (ABM_GETTASKBARPOS, &abd);

      abd.lParam = TRUE;

      diditwork = SHAppBarMessage (ABM_SETAUTOHIDEBAR, &abd);"

But guess what? I run it- and guess what? NO AUTO HIDE.

Where in the registry or whatever does it set for user X, make
the toolbar AutoHide?

Why doesn't Microsoft ever document anything?

0
 
LVL 2

Expert Comment

by:freter
ID: 1569663
We have checked it with SYSDIFF. Curious as it may seem: there is no location on the machine where MS seems to store information about the autohide-taskbar. Neither in the registry, nor on the disk. So, I#m still looking for the answer.
0
 
LVL 2

Expert Comment

by:freter
ID: 1569664
We have checked it with SYSDIFF. Curious as it may seem: there is no location on the machine where MS seems to store information about the autohide-taskbar. Neither in the registry, nor on the disk. So, I#m still looking for the answer.
0
 

Expert Comment

by:zhangfang
ID: 1569665
     
Try so:
      CWnd* pWnd=CWnd::FindWindow("Shell_TrayWnd",NULL);
      abd.hWnd=pWnd->m_hWnd;

      abd.cbSize = sizeof(APPBARDATA);

      SHAppBarMessage (ABM_GETTASKBARPOS, &abd);

      abd.lParam = TRUE;

      diditwork = SHAppBarMessage (ABM_SETAUTOHIDEBAR, &abd);"
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Sometimes you might need to configure routing based not only on destination IP address, but also on a combination of destination IP address (or hostname) and destination port number. I will describe a method how to accomplish this with free tools. …
Enterprise networks where VoIP phones have been deployed frequently use port configurations that allow both a computer and an IP phone to be plugged into the same switch port but use different VLANs. On Cisco equipment I'm referring to the "native V…
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

910 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now