256x256 icons worry again or how to get the TRUE icon size via IImageList

I get a list of system images by calling SHGetImageList :

SHGetImageList(SHIL_LAST, IID_IImageList, (void**)&imList); 

I have a list of 256x256 images, but the size of small icons that do not have a 256 version also has a size of 256. I need each icon to have its true size. How can I find out its size?

I get the icon size using the method:

IImageList::GetIconSize

Ok Now I know about IImageList::GetIconSize, getting the entire icon size equal to 256x256. Then another question, how do you know the actual size of the image?

ps Sorry for my english.

+3
source share
1 answer

. 256x256, 256x256 . , , .

+1

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


All Articles