How to get icon sizes from its handle?

I have an icon descriptor (HICON) and you need to find out the size of the icon that it represents. How to get this information?

+3
source share
1 answer

Pass it on GetIconInfo(), then pass either the returned color or the mask HBITMAPin GetObject()to get a structure BITMAPwith elements of height and width.

+6
source

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


All Articles