Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Win32/Win64 API (native code) (https://www.delphipraxis.net/17-win32-win64-api-native-code/)
-   -   Delphi Info, Warning, Information... Icons auslesen? (https://www.delphipraxis.net/57920-info-warning-information-icons-auslesen.html)

FriFra 28. Nov 2005 18:31


Info, Warning, Information... Icons auslesen?
 
Ich würde gern die Info, Warning, Information ... Icons des aktuellen Systems auslesen. Ich weiß, dass es sogar recht einfach geht, aber ich finde im Moment die Lösung nicht mehr :? ...

jim_raynor 28. Nov 2005 18:38

Re: Info, Warning, Information... Icons auslesen?
 
Am einfachsten geht das doch per TIcon und LoadIcon:

Delphi-Quellcode:
Icon:=TIcon.Create;
Icon.Handle:=LOadIcon(0,IDI_ERROR);
oder IDI_WARNING oder IDI_INFORMATION.

Luckie 28. Nov 2005 18:39

Re: Info, Warning, Information... Icons auslesen?
 
Was verstehst du unter "auslesen"? Willst du die nummerischen Werte der Konstanten haben oder wie? Ansonsten im PSDK und MSDN-Library durchsuchenLoadIcon gucken, da findest du die Konstanten.

FriFra 28. Nov 2005 18:40

Re: Info, Warning, Information... Icons auslesen?
 
Danke, genau das hab ich gesucht :thumb:

@Luckie: Ich meinte natürlich das Icon selbst ;)

FriFra 28. Nov 2005 19:15

Re: Info, Warning, Information... Icons auslesen?
 
jetzt bräuchte ich davon "nur" noch die 16x16 Version :oops: ...

Flocke 28. Nov 2005 20:49

Re: Info, Warning, Information... Icons auslesen?
 
Dann nimm MSDN-Library durchsuchenLoadImage statt MSDN-Library durchsuchenLoadIcon, da kannst du die gewünschte Größe mit angeben.


Alle Zeitangaben in WEZ +1. Es ist jetzt 23:27 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