Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Betriebssysteme (https://www.delphipraxis.net/27-betriebssysteme/)
-   -   Icons aus Systembibliothek (*.icl) extrahieren? (https://www.delphipraxis.net/8978-icons-aus-systembibliothek-%2A-icl-extrahieren.html)

Tim.exe 16. Sep 2003 09:41


Icons aus Systembibliothek (*.icl) extrahieren?
 
Hallo,

ich habe ein paar Icons runtergeladen, allerdings als Systembibliothek (*.icl).
Jetzt kann ich zwar wunderschön meine Desktop Icons austauschen, aber das hilft mir nicht viel, ich bräuchte die einzelnen Icons als *.ico.

Kann man die Bibliothek irgendwie extrahieren so das man die einzelnen Icons anders nutzen kann?

Tim.exe 16. Sep 2003 10:21

Re: Icons aus Systembibliothek (*.icl) extrahieren?
 
Hab ein Programm gefunden, wen es interessiert: Microangelo

negaH 16. Sep 2003 10:41

Re: Icons aus Systembibliothek (*.icl) extrahieren?
 
ICL's sind normale DLL's.

Delphi-Quellcode:
procedure ExtractICLIcon(Icon: TIcon; const FileName: String; IconIndex: Integer);
var
  Lib: THandle;
begin
  Lib := LoadLibraryEx(PCHar(FileName), 0, LOAD_LIBARARY_AS_DATAFILE);
  if Lib <> 0 then
  try
    Icon.Handle := ExtractIcon(Lib, IconIndex);
  finally
    FreeLibrary(Lib);
  end;
end;
Gruß Hagen


Alle Zeitangaben in WEZ +1. Es ist jetzt 20:12 Uhr.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz