Solved

Auto-hide taskbar

Posted on 1997-12-13
7
677 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
[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
  • 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
Free learning courses: Active Directory Deep Dive

Get a firm grasp on your IT environment when you learn Active Directory best practices with Veeam! Watch all, or choose any amount, of this three-part webinar series to improve your skills. From the basics to virtualization and backup, we got you covered.

 

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

Flexible connectivity for any environment

The KE6900 series can extend and deploy computers with high definition displays across multiple stations in a variety of applications that suit any environment. Expand computer use to stations across multiple rooms with dynamic access.

Question has a verified solution.

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

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 …
This is the first one of a series of articles I’ll be writing to address technical issues that are always referred to as network problems. The network boundaries have changed, therefore having an understanding of how each piece in the network  puzzl…

730 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