Updating the application icon in the Windows 7 taskbar

I have a regular MFC application with a built-in icon. If I launch the application, the icon is displayed inside the Windows 7 taskbar. But when I change the icon inside the resources, rebuild the application and launch it, the current icon is not displayed on the taskbar, but the icon from the first launch.

There is no special code in the application that does something specific with the Windows 7 taskbar.

Is there a way (in C ++) to tell the Windows 7 taskbar to the current icon?

+3
source share
3 answers

Are you empty / remove shell cache icons ?

+1

, , , , , .

, , , SHChangeNotify(); shell32.dll, .

+1

deleted the previous icon from the resource .... and assigned a new icon to the file ... after adding to the resource ... maybe this would work ....

0
source

Source: https://habr.com/ru/post/1742772/


All Articles