Solved

Auto-hide taskbar

Posted on 1997-12-13
7
637 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
How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

 

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

Network it in WD Red

There's an industry-leading WD Red drive for every compatible NAS system to help fulfill your data storage needs. With drives up to 8TB, WD Red offers a wide array of solutions for customers looking to build the biggest, best-performing NAS storage solution.  

Join & Write a Comment

Nslookup is a command line driven utility supplied as part of most Windows operating systems that can reveal information related to domain names and the Internet Protocol (IP) addresses associated with them. In simple terms, it is a tool that can …
This article offers some helpful and general tips for safe browsing and online shopping. It offers simple and manageable procedures that help to ensure the safety of one's personal information and the security of any devices.
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

746 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

8 Experts available now in Live!

Get 1:1 Help Now