Solved

Auto-hide taskbar

Posted on 1997-12-13
7
657 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
Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

 

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

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

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

Suggested Solutions

We recently endured a series of broadcast storms that caused our ISP to shut us down for brief periods of time. After going through a multitude of tests, we determined that the issue was related to Intel NIC drivers on some new HP desktop computers …
An article on effective troubleshooting
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.

813 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

16 Experts available now in Live!

Get 1:1 Help Now