How to remove other applications from the system task bar.
Posted on 2004-11-22
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?