3
votes

I have a normal MFC Application with an embedded icon. If I start the application, the icon is shown inside the windows-7 taskbar. But when I change the icon inside the resources, rebuild the application and start it, the taskbar doesn't show the current icon, but the icon from the first run.

There is no special code inside the application that does something specific with the windows-7 taskbar.

Is there a way, (in C++) to tell the windows-7 taskbar to show the current icon?

3
Changing the version-number in VERSIONINFO did not help. Changing the name does, but is not a solution.Florian W.

3 Answers

1
votes
1
votes

I believe that if you rebuild an application, but it's still called by the same name, then explorer doesn't think it should reload the icon, even though the new icon is the only one in the app.

If you were to release the program, no-one else would have this problem since the first version of the app would have the new icon, but for your own purposes you can call SHChangeNotify(); from shell32.dll to refresh your own view of the icon.

0
votes

did your remove the previous icon from resource....and assign the new icon to the file..too after putting in the resource...might that would work....