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

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

Mike Gr=E4nz wrote:
> =

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

Quite simple... (MyImage is a TImage)

  MyImage.Picture.Icon.Handle :=3D 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: