Archive: Task bar refresh


Task bar refresh
My installation installs a program that places an icon in the task bar.

When I upgrade the application it closes down the application and upgrades the application, then launches the application, the problem I have is that you get two icons in the task bar, but if you hover over them the old one goes. I've seen this happen with other applications that display icons in the task bar.

In the Task Manager only one application is loaded.

It appears that the task bar needs a refresh, but how do you do this?


You should close the application in a clean fashion so it will remove the icon on its own.


This is what I am doing, but Windows does not refresh the task bar, if you move your mouse over the task bar the old icon disappears


So it's the application problem. A normal application should remove its tray icon when exiting.

If you insist on refreshing the taskbar, which is far from the ideal solution, you should search MSDN for an appropriate message or API function.