开发者

How to get the dimensions of an Icon from its handle?

开发者 https://www.devze.com 2023-01-01 17:44 出处:网络
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 ret

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消