Try open start and search for feedback and open the Feedback Hub app and report this issue and explain how to reproduce this issue.
WM_SETICON does not update taskbar icon in windows 11
Dejan Pecar
11
Reputation points
When I change the icon of a window with the following code snippet
HICON hIcon = LoadIcon(hInst, MAKEINTRESOURCE(IDI_ICON1));
SendMessage(hWnd, WM_SETICON, ICON_SMALL, (LPARAM)hIcon);
then the icon of the window is updated but not the icon of this window in the taskbar of windows 11.
when i do the same thing in windows 10 both icons are updated.
What can I do that the same code is running in window 10 and windows 11 ?
3 answers
Sort by: Most helpful
-
-
Dejan Pecar 11 Reputation points
2022-02-02T09:57:12.93+00:00 After further investigations we found out that this problem is only reproduceable on virtualized (VMWare) Windows11 machines.
The problem is either in the RDP client or in VMWare itself. -
Xiaopo Yang - MSFT 11,081 Reputation points Microsoft Vendor
2022-01-28T01:43:13.917+00:00 But when I associate a new small icon with a window, It successes(Windows11).