How to remove other applications from the system task bar.

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?
MentatDewdAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Amritpal SinghCommented:
0
Amritpal SinghCommented:
0
MentatDewdAuthor Commented:
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
Cloud Class® Course: Microsoft Azure 2017

Azure has a changed a lot since it was originally introduce by adding new services and features. Do you know everything you need to about Azure? This course will teach you about the Azure App Service, monitoring and application insights, DevOps, and Team Services.

MentatDewdAuthor Commented:
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
DanRollinsCommented:
In brief, please describe the solution you used.  Future readers would be very thankful.
-- DanRollins / EE Page Editor
0
MentatDewdAuthor Commented:
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
DanRollinsCommented:
Thanks.
I have refunded your question points (500) and am saving this in the PAQ database.
-- DanRollins / EE Page Editor
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
System Programming

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.