I'm working on an big legacy MFC application in Visual Studio 2017. I want to set a different icon in the titlebar than in the taskbar. I can change the Icon like that:
HICON hIcon = AfxGetApp()->LoadIcon( IDI_LOGO_WHITE );
SetIcon( hIcon, FALSE );
But it changes in the title and taskbar. Is there a way to change just the Icon in the titlebar? eg. The Visual Studio 2017 icon in darkmode is white in the titlebar and purple in the taskbar.