<CT> Re: Delphi and icon.dll's

  • From: Erwin Dokter <edokter@xxxxxxx>
  • To: calmira_tips@xxxxxxxxxxxxx
  • Date: Sat, 15 Jun 2002 23:54:53 +0200

That came out quite garbled!

Mike Granz wrote:
> ..how can i extract icons from an icon library (*.dll)? I've tried it with
> the "ExtraxtIcon"-function, but how do i assign this handle to an ordinary
> picture(TImage)?? Would be very cool if anybody would help me!!

Quite simple... (MyImage is a TImage)

  MyImage.Picture.Icon.Handle := ExtractIcon(HInstance,
    'icons.dll', index);

-- Erwin Dokter
To unsubscribe, send a message to ecartis@xxxxxxxxxxxxx with
"unsubscribe calmira_tips" in the body.
OR visit http://freelists.org

Other related posts: