How to get the dimensions of an Icon from its handle?
I have a handle to the icon (HICON) and have to find out the dimensions of the icon that it repres开发者_如何学JAVAents. How do I get this information?
Pass it to GetIconInfo()
then pass either the returned colour or mask HBITMAP
to GetObject()
to get a BITMAP
struct that has height/width members.
精彩评论