1. Re: Size of Icon (.ico) file - Attn:Bernie Ryan

> As in SIZEOF_BITMAP, is there any way to get the size of Icon files, provided
> icon file handle is available?

First off, SIZEOF_BITMAP refers to the size of the BITMAP structure in memory.

You can obtain the size of an icon by calling GetIconInfo, which
returns an ICONINFO structure, which points to a BITMAP structure,
which holds the size of the bitmap for the icon.

I would knock up a demo, but I don't have Euphoria or Win32Lib on my
computer at work. Perhaps this information can point someone in the
right direction.


GetIconInfo Function
http://msdn.microsoft.com/library/en-us/winui/winui/windowsuserinterface/resources/icons/iconreference/iconfunctions/geticoninfo.asp

ICONINFO Structure
http://msdn.microsoft.com/library/en-us/winui/winui/windowsuserinterface/resources/icons/iconreference/iconstructures/iconinfo.asp

BITMAP Structure
http://msdn.microsoft.com/library/en-us/gdi/bitmaps_2h6a.asp


~Greg

new topic     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu