Also so schwer kann das doch nicht sein:
Delphi-Quellcode:
procedure TForm4.Button1Click(Sender: TObject);
var
ResourceStream: TResourceStream;
Icon: TIcon;
begin
ResourceStream := TResourceStream.CreateFromID(HInstance, <Deine Icon ID>, 'Icon');
try
Icon := TIcon.Create;
try
Icon.LoadFromStream(ResourceStream);
DrawIcon(Self.Canvas.Handle, 0, 0, Icon.Handle);
finally
Icon.Free;
end;
finally
ResourceStream.Free;
end;
end;
Bt. mein BDS2006 kennt für
TIcon auch die Methoden
LoadFromResourceName und
LoadFromResourceID.