[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

How to remove other applications from the system task bar.

Posted on 2004-11-22
7
Medium Priority
?
218 Views
Last Modified: 2013-11-20
Hi,
   Currently I am using ITaskbarList to do this, but there are some problems. Mainly, the button is put back on the system taskbar whenever a user does something with the window. Further, whenever Windows decides to add/readd a button to the taskbar, I get a flicker of the button getting drawn since I call DelTab after the button has been added in most cases. I have tried reparenting the application to a window created by ::CreateWindow(_T("STATIC"),_T("Hidden Parent Window"),0, 0,0,0,0, NULL,0,AfxGetInstanceHandle(),0); but this renders the window not visible, and ShowWindow on either the parent or the original (now the child) has no effect. I can not use the toolwindow extended style trick, as this modifies the appearance of the window. So, how then do I stop a window from being represented on the system taskbar, and when the time comes how do I reenable it?
0
Comment
Question by:MentatDewd
  • 3
  • 2
  • 2
7 Comments
 
LVL 6

Expert Comment

by:Amritpal Singh
ID: 12652091
0
 
LVL 6

Expert Comment

by:Amritpal Singh
ID: 12652101
0
 

Author Comment

by:MentatDewd
ID: 12656287
Thanks amrit, I have looked at both of those articles about 2 weeks ago and they were helpful, but they still don't accomplish the behaviour I need. I need to possibly reparent an arbitrary applicaton could be Wordpad, could be TurboTax, could be anything. I tried reparenting as noted above, but couldn't get the application to show itself once I had.
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:MentatDewd
ID: 12720172
Well, I've solved this problem for myself. Hopefully in the future MS will correct this problem in some way that doesn't force you to hack their toolbar.
0
 
LVL 49

Expert Comment

by:DanRollins
ID: 12746252
In brief, please describe the solution you used.  Future readers would be very thankful.
-- DanRollins / EE Page Editor
0
 

Author Comment

by:MentatDewd
ID: 12748642
I hook create/destroy/activate/windowposchanging/windowposchanged and update the system taskbar using ITaskbarList. I track the windows that I don't want to appear on the system taskbar. Basically I remove the taskbutton each time the MS taskbar tries to add it again. This results in some minor flashing in the taskbar as the MS taskbar tries to put a button back on itself which is then immediately removed again, but I could find no better way to do this easily.
0
 
LVL 49

Accepted Solution

by:
DanRollins earned 0 total points
ID: 12756553
Thanks.
I have refunded your question points (500) and am saving this in the PAQ database.
-- DanRollins / EE Page Editor
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

Introduction: Dialogs (1) modal - maintaining the database. Continuing from the ninth article about sudoku.   You might have heard of modal and modeless dialogs.  Here with this Sudoku application will we use one of each type: a modal dialog …
In this post we will learn different types of Android Layout and some basics of an Android App.
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
Screencast - Getting to Know the Pipeline
Suggested Courses

834 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