

Additionally I have tried including some 8-bit images but that doesn't seem to change things.ĮDIT: I'm using GetDeviceCaps( hdc, LOGPIXELSX ) (and Y) to determine the Desktop scaling. All of the sizes look great at the resolutions they are in the file (I was trying to put the ICO here or in imgur but apparently neither allow icons).

The 256x256 one is PNG compressed, the others are raw. Has anyone found a solution that makes it so that BOTH icons look good?ĮDIT: In my icon file, I have the following resolutions: 256x256, 48x48, 32x32, 24x24, and 16x16, all 32-bit. If I exclude that, the Taskbar icon looks bad (terrible scaling) but the Volume Mixer at least is the right size: If I include that, the Taskbar icon looks great but the Volume Mixer isn't scaled and looks terrible. The culprit is the "hi-res if available" part. HICON hIcon = (HICON)::LoadImage( theApp.m_hInstance, MAKEINTRESOURCE( res_id ), IMAGE_ICON, 256, 256, LR_SHARED ) if we're Vista or more recent, use hi-def icons
Volumemixer for windows 10 code#
Specifically, the following code is what I use to set the application's icon: // set icons the normal wayĬWnd.SetIcon( theApp.LoadIcon( res_id ), FALSE ) ĬWnd.SetIcon( theApp.LoadIcon( res_id ), TRUE ) nice! However, when you use a large-sized icon for your application (especially important in high-DPI when Windows scales your icons for the Taskbar, etc.), the icon in the Volume Mixer doesn't scale correctly. In the Windows Volume Mixer, when your application plays sounds, it adds your application's icon and a custom volume slider to adjust volume specific to that application.
