Jump to content
  • Advertisement
Sign in to follow this  
Fourty_Two

Taskbar Buttons - Hiding

This topic is 4590 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I know its possible to get a handle to the taskbar and hide it with ShowWindow(), but is it possible to remove individual window buttons from the task bar? The reason I ask is there are certain applications that I have open ALL the time (Outlook, bash console, etc) and I don't need them or want them taking up taskbar space. I would still like them to show up on ALT+TAB if possible. If someone could point me in the right direction, or if you know of an application that can do this, I'd greatly appreciate it.

Share this post


Link to post
Share on other sites
Advertisement
I used to use this app pretty heavily in the Win98 days. It was handy... and then I discovered dual monitors [wink]

That article should give you a fairly good idea of what to do, if the app itself doesn't cut it. IIRC the source is available if you want to tweak it up a bit.

Share this post


Link to post
Share on other sites
As far as I know, if you'd set the target window's style to WS_EX_TOOLWINDOW (correct me if I'm wrong), the application's taskbar entry should be removed, however this should also remove it from the {Alt + Tab} window.

Though I'm sure it's quite possible, because in C# you have "ShowInTaskbar" which, when set to false, removes the window's taskbar entry but keeps the application in the {Alt + Tab} window.

Share this post


Link to post
Share on other sites
Quote:
Original post by Colin Jeanne
MS specifically designed Windows so that you did NOT have access to the window buttons on the taskbar.


You are mostly correct but with a bit of hacking such as taking these windows' handle then ShowWindow (), they won't show up anymore.

You may take a look at WinSpy to find out the way they handily search for a window handle, source code included.

Share this post


Link to post
Share on other sites
That may be, but I consider that to be bad programming since you are trying to do something you're not supposed to be doing. In newer (or even older) versions of Windows the method you use might not work.

Share this post


Link to post
Share on other sites
I use ShowWindow(ApplicationHandle,SW_HIDE); to hide the application's button, I guess that if you enumerate the running applications, you could do the same for those ?

(*if* you'd want to do it yourself)

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!