Icon format is becoming obsolete? [duplicate] - windows

What icon resources are most relevant to windows 8? I have currently the largest icon in res file 48x48 x256 colors, should I have a larger one for Win8?

Nothing has changed in this area, at least for desktop apps, since Vista. In other words, you are already 5 years out-of-date. ;-)
The guidelines that were introduced for Vista remain valid. For application icons the guidelines say:
Application icons and Control Panel items: The full set includes 16x16, 32x32, 48x48, and 256x256 (code scales between 32 and 256).
The 256px icon should be a compressed PNG icon. The Delphi 4 resource compiler does not support such icons. You can use, for example, the MS resource compiler, rc.exe.

Related

Changing the size of fonts for dpi

Almost every source about Win32 dpi says that you need to load new scaled fonts.
I tested a simple application (main window and a child ListView, written in pure WinAPI) on WinXpSP3, Win7 and Win10 and in all cases the OS always automatically set the correct font size (and even non-client areas) both at startup and when changing the system scaling in runtime. The only thing I had to change manually was the size of the windows themselves and the size of the icons in the ListView.
The application manifest contained
dpiAware True/PM
dpiAwareness PerMonitorV2, PerMonitor
And I'm a little confused. It turns out that manual processing of fonts is needed only for owner-drawn controls?

Convert multiple PNG icons into one .ICO icon

I think I should start by saying that I am a UI Designer.
I am having a really hard time trying to convert 8 png's (same icon in 8 different resolutiona) into one single .ico icon for a Windows app. The png's resolutions are the fallowing x16, x20, x24, x32, x40, x48, x64, x80.
I have tried every convertor online there is and even some obscure softwares and nothing...
Since you posted this to Stackoverflow I'm going to start by linking you to the blog series about the icon format history, specifically the PNG entry.
The best choice for working with icons is special purpose icon editors, they give you full control of PNG compression and other details. A decent free editor you can try is IcoFX.

Blurry text on wxWidgets controls

I compiled one of the latest wxWidgets samples on MS Windows.
On high DPI display with all setting default text and bitmaps are blurry and less clear comparing to other Windows apps?
Check screenshot
Bitmaps probably not so much, but should fonts scale?
What am I doing wrong?

How many pixels in the Windows Taskbar Icons?

I'm making a program that will show you when caps lock is turned on. I want it to display a little icon on the Windows Taskbar by the icons such as the battery, volume and internet connection. I was just wondering what the dimensions of the image could/should be.
Googling on this...
windows tray icons resolution
... the first few hits are quite helpful; What is the size of the icons in the system tray? says that
It's 16x16. If you create a .ico file that supports 16, 32, 48 and 256 sizes, you're covered.
And it points here, where Microsoft recommends:
Notification area icons should be high-DPI aware. An application should provide both a 16x16 pixel icon and a 32x32 icon in its resource file, and then use LoadIconMetric to ensure that the correct icon is loaded and scaled appropriately.

Get Icon info from the executable file?

I'm trying to get the icon from the .exe file using the following APIs:
SHGetFileInfoW() SHGetImageList() and from the ImageList thus obtained I read the icon by calling GetIcon().
When the color depth of the machine is set to 32bit I get the 32bit color icon. The issue is when I change the machine's color depth to 24 or 16 bit then I get a 16bit color icon and this image seems to be corrupted.
I also checked for the list of available icons in some of the common windows applications (notepad, paint etc) and some of the office applications, none of had 16bit or 24 bit color icons.
What would be the best way to get the proper icons from the executable file ?
Thanks !
You can load exe's using LoadLibraryEx, and then extract the icons using LoadImage - or - if you want direct access to the icons data: FindResource, LoadResource, LockResource will give you a pointer to the icon's resources bits.

Resources