>>>>What is the proper function to retrieve an icon from an executable or DLL so I can load it into a ImageList with .ADD(,"Drive",LOADPICTURE("Drive.ico"))
>>>>?
>>>>
>>>>Thanks,
>>>
>>>Will,
>>>
>>>Actually, neither of these will do what you want. Both return a handle to the icon. The handle can be then used by an API function such as DrawIcon(). Unfortunately, the handle does not produce a physical file and there isn't an API call that can do this directly.
>>
>>George,
>>
>>I found a freeware program that extracts icons from executables and DLLs. It saves them as icon files. If it only had a COM interface.
>>
>>
http://monsternet.game-point.net/goodies/icon_digger_2000.htm>>
>>There must be a way to do this using a Windows API and possibly a C++ wrapper to save the handle to a file?
>
>Will,
>
>You might want to check out "Icons in Win32" in the technical articles section of the MSDN Library. I haven't read it completely yet, but what I have read looks promising. I'm beginning to get a better idea of the file structure. This has always been my major impediment to implementing some programming to automatcally create a 16x16 and 32x32 icon file from just the larger size. Whether or not it's doable is another story.
George,
Ok, I found it. Yes, this is promising! I've downloaded the code and will see what I come up with. If successful I'll post it here.
Thanks for the help.