Tough: Hide TaskBar Programmatically 
Author Message
 Tough: Hide TaskBar Programmatically

Does anyone know how to hide/show the taskbar programmatically?
Which registry key is used, if any?
Where's the bit that toggles this?

From reading deja.com I get the impression this is a bit of an enigma...

Regards

Rik
--
The rumblynge of a fart, and every soun,
Nis but of eir reverberacioun[...]

                                   -- Geoffrey Chaucer



Sat, 01 Dec 2001 03:00:00 GMT  
 Tough: Hide TaskBar Programmatically
This is a hack, so please no one laugh, but you can use Spy++ to find the
window (whose name and class don't change) and use ShowWindow(hWndTaskBar,
SW_HIDE) to hide it or EnableWindow() to disable it. Microsoft just hates it
when you try to make the operating system into a kiosk.

--Mark


Quote:
> Does anyone know how to hide/show the taskbar programmatically?
> Which registry key is used, if any?
> Where's the bit that toggles this?

> From reading deja.com I get the impression this is a bit of an enigma...

> Regards

> Rik
> --
> The rumblynge of a fart, and every soun,
> Nis but of eir reverberacioun[...]

>                                    -- Geoffrey Chaucer



Sat, 01 Dec 2001 03:00:00 GMT  
 Tough: Hide TaskBar Programmatically
Use SHAppBarMessage().

Adeluc

DecoTech Design Software Inc.
Internet: http://www.pulsarsoft.com


Quote:
> Does anyone know how to hide/show the taskbar programmatically?
> Which registry key is used, if any?
> Where's the bit that toggles this?

> From reading deja.com I get the impression this is a bit of an enigma...

> Regards

> Rik
> --
> The rumblynge of a fart, and every soun,
> Nis but of eir reverberacioun[...]

>                                    -- Geoffrey Chaucer



Sat, 01 Dec 2001 03:00:00 GMT  
 Tough: Hide TaskBar Programmatically
Mmm, I'm getting a handle but this doesn't work:

HWND hwndAutoHide = (HWND) SHAppBarMessage(ABM_GETAUTOHIDEBAR, &abd);
        if (!hwndAutoHide) MessageBox(AfxGetMainWnd()->m_hWnd,"qqq","QQQ",
MB_OK);

        //SHAppBarMessage(ABM_SETPOS, &abd);

        MoveWindow(hwndAutoHide,200,200,500,100,TRUE);
        ShowWindow(hwndAutoHide, SW_SHOW);

Hints?

R.
--
The rumblynge of a fart, and every soun,
Nis but of eir reverberacioun[...]

                                   -- Geoffrey Chaucer



Sun, 02 Dec 2001 03:00:00 GMT  
 Tough: Hide TaskBar Programmatically

Quote:

>Does anyone know how to hide/show the taskbar programmatically?
>Which registry key is used, if any?
>Where's the bit that toggles this?

>From reading deja.com I get the impression this is a bit of an enigma...

void ShowTheTaskbar (BOOL bShow)
{
   HWND hSysTray = ::FindWindow ("Shell_TrayWnd", NULL) ;

   if (hSysTray)
   {
      if (bShow)
         ShowWindow (hSysTray, SW_SHOW);
      else
         ShowWindow (hSysTray, SW_HIDE);
        }

Quote:
}

Use with EXTREME caution. If your app hangs and leaves someone without
a taskbar, you will NOT be popular.

Bob Moore [MVP]
http://www.mooremvp.freeserve.co.uk
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Due to an unreasonable amount of queries, I no
longer answer unsolicited email questions. Sorry,
no exceptions.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~



Sun, 02 Dec 2001 03:00:00 GMT  
 
 [ 5 post ] 

 Relevant Pages 

1. Hide Taskbar Programmatically Pt. II

2. keep the Win2000's auto-hide-enabled taskbar permanently hidden

3. keep the Win2000's auto-hide-enabled taskbar permanently hidden

4. programmatic hide of Win2000 auto-hide-enabled taskbar

5. Show AutoHide Taskbar Programmatically Pt. I

6. Setting Taskbar properties programmatically

7. Programmatically disable/hid Submit Button

8. How does one programmatically show/hide CToolBars

9. how:hide CListCtrl scroll bar and scroll programmatically

10. Hiding application from Taskbar

11. Taskbar hiding

12. programmatic hide of Win2000 taskbar

 

 
Powered by phpBB® Forum Software