Autor Beitrag
Henry
ontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic starofftopic star
Beiträge: 619

WinXP Prof. SP3
D6 Prof.
BeitragVerfasst: Di 08.02.05 19:10 
Hallo,

ich bin in einer Zeitschrift darauf gestoßen das in der shell32.dll einige interessante Icons von Windows stecken.
Ich würde nun gern wissen ob man diese in eigenen Programmen verwenden darf und wie man die Icons aus der DLL im Programm laden kann.

Gibt es auch eine DLL in der die Icons für speichern, öffnen usw. drin sind?

Herzlichen Dank im voraus

_________________
mfg Henry
Luckie
Ehemaliges Mitglied
Erhaltene Danke: 1



BeitragVerfasst: Di 08.02.05 19:18 
Die kannst du mit Suche im MSDN LOADIMAGE laden. Als Datei gibst du für "Datei neu" zum Beispiel STD_FILENEW an. Frag mich aber nicht, wo du die ganzen Konstanten findest.
Henry Threadstarter
ontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic starofftopic star
Beiträge: 619

WinXP Prof. SP3
D6 Prof.
BeitragVerfasst: Di 08.02.05 19:53 
Luckie hat folgendes geschrieben:
Die kannst du mit Suche im MSDN LOADIMAGE laden.

Damit komme ich irgendwie nicht zurecht :(

Luckie hat folgendes geschrieben:
Als Datei gibst du für "Datei neu" zum Beispiel STD_FILENEW an.

Ich habe versucht das in eine ImageList zu laden, aber die Konstante kann man da nicht eintragen. Verwenden möchte ich die Icons im MainMenu, da geht es aber nur mit einer ImageList (soweit ich weiß)

Luckie hat folgendes geschrieben:
Frag mich aber nicht, wo du die ganzen Konstanten findest.

Vielleicht weiß es ja jemand anders ;)

_________________
mfg Henry
Kernel32.dll
Ehemaliges Mitglied
Erhaltene Danke: 1



BeitragVerfasst: Di 08.02.05 20:21 
Henry hat folgendes geschrieben:

Luckie hat folgendes geschrieben:
Frag mich aber nicht, wo du die ganzen Konstanten findest.

Vielleicht weiß es ja jemand anders ;)


weiß nich, obs alle sind, habs ausm PSDK:

Zitat:

This section specifies index values of images within standard bitmaps.


Constants


Index values for IDB_HIST_LARGE_COLOR and IDB_HIST_SMALL_COLOR:

HIST_ADDTOFAVORITES
Add to favorites.
HIST_BACK
Move back.
HIST_FAVORITES
Open favorites folder.
HIST_FORWARD
Move forward.
HIST_VIEWTREE
View tree.

Index values for IDB_STD_LARGE_COLOR and IDB_STD_SMALL_COLOR:

STD_COPY
Copy operation.
STD_CUT
Cut operation.
STD_DELETE
Delete operation.
STD_FILENEW
New file operation.
STD_FILEOPEN
Open file operation.
STD_FILESAVE
Save file operation.
STD_FIND
Find operation.
STD_HELP
Help operation.
STD_PASTE
Paste operation.
STD_PRINT
Print operation.
STD_PRINTPRE
Print preview operation.
STD_PROPERTIES
Properties operation.
STD_REDOW
Redo operation.
STD_REPLACE
Replace operation.
STD_UNDO
Undo operation.

Index values for IDB_VIEW_LARGE_COLOR and IDB_VIEW_SMALL_COLOR:

VIEW_DETAILS
Details view.
VIEW_LARGEICONS
Large icons view.
VIEW_LIST
List view.
VIEW_NETCONNECT
Connect to network drive.
VIEW_NETDISCONNECT
Disconnect from network drive.
VIEW_NEWFOLDER
New folder.
VIEW_PARENTFOLDER
Go to parent folder.
VIEW_SMALLICONS
Small icon view.
VIEW_SORTDATE
Sort by date.
VIEW_SORTNAME
Sort by name.
VIEW_SORTSIZE
Sort by size.
VIEW_SORTTYPE
Sort by type.
Remarks

You use these values to specify an image index within a standard image list that was loaded with the TB_LOADIMAGES message. The index values correspond to images within standard image lists that the control creates for your convenience. The images depict actions that Windows applications commonly perform.

Henry Threadstarter
ontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic starofftopic star
Beiträge: 619

WinXP Prof. SP3
D6 Prof.
BeitragVerfasst: Di 08.02.05 20:32 
Das ist doch schon mal eine ganze Menge, die wichtigsten sind ja alle vertreten.
Muß ich nur noch herausfinden wie ich sie in einer Imagelist nutzen kann.

EDIT:
ausblenden Delphi-Quelltext
1:
Neu1.ImageIndex := STD_FILENEW;					

So funktioniert es leider nicht

_________________
mfg Henry
Kernel32.dll
Ehemaliges Mitglied
Erhaltene Danke: 1



BeitragVerfasst: Di 08.02.05 22:19 
Guck dir mal diese Methode der Imagelist an:

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
[...]
var
imagelst: TImageList;
begin
imagelst.masked := false;
imagelst.addimages(STD_FILENEW,nil);
end;


Hinweis: Nicht getestet!!

(steht übrigens alles schön in der Delphi-hilfe :wink: )

[Edit] Das sind ja gar keine Icons, sondern Images...[/Edit]
Chatfix
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 1583
Erhaltene Danke: 10

Win 10, Win 8, Win 7, Win Vista, Win XP
VB.net (VS 2015), MsSQL (T-SQL), HTML, CSS, PHP, MySQL
BeitragVerfasst: Mi 09.02.05 12:22 
Zum extrahieren nutze ich immer das schöne Programm IconBrowser.

www.pics-software.de/swico.htm

_________________
Gehirn: ein Organ, mit dem wir denken, daß wir denken. - Ambrose Bierce
AXMD
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 4006
Erhaltene Danke: 7

Windows 10 64 bit
C# (Visual Studio 2019 Express)
BeitragVerfasst: Mi 09.02.05 12:29 
Chatfix hat folgendes geschrieben:
Zum extrahieren nutze ich immer das schöne Programm IconBrowser.

www.pics-software.de/swico.htm


Was du eigentlich nicht dürftest, weil die Icons M$ gehören

AXMD
Chatfix
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 1583
Erhaltene Danke: 10

Win 10, Win 8, Win 7, Win Vista, Win XP
VB.net (VS 2015), MsSQL (T-SQL), HTML, CSS, PHP, MySQL
BeitragVerfasst: Mi 09.02.05 12:36 
Wer sagt das ich damit Ms-Logos extrahiere?
Wollte dem Thead-Autor nur sagen das es da so ein Programm gibt ;)

Dein $-Zeichen hinter dem M ignoriere ich jetzt einfach mal, weil ich will den Thread nciht zerstören :P

_________________
Gehirn: ein Organ, mit dem wir denken, daß wir denken. - Ambrose Bierce
AXMD
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 4006
Erhaltene Danke: 7

Windows 10 64 bit
C# (Visual Studio 2019 Express)
BeitragVerfasst: Mi 09.02.05 12:39 
Chatfix hat folgendes geschrieben:
Wer sagt das ich damit Ms-Logos extrahiere?


Niemand. Ich hab nichts von MS-Logos gesagt... :roll:

Ich hab gesagt, dass die Icons MS gehören und dass du sie nicht einfach extrahieren darfst (steht sogar irgendwo auf der MS-Page); nur zur Laufzeit einbinden darfst du sie; nicht aber extrahieren!

AXMD
Chatfix
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 1583
Erhaltene Danke: 10

Win 10, Win 8, Win 7, Win Vista, Win XP
VB.net (VS 2015), MsSQL (T-SQL), HTML, CSS, PHP, MySQL
BeitragVerfasst: Mi 09.02.05 12:52 
Ja sorry, mit Logos hab ich Icons gemeint.
Keine Ahnung wie ich auf "Logos" gekommen bin.

_________________
Gehirn: ein Organ, mit dem wir denken, daß wir denken. - Ambrose Bierce
Henry Threadstarter
ontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic starofftopic star
Beiträge: 619

WinXP Prof. SP3
D6 Prof.
BeitragVerfasst: Mi 09.02.05 15:33 
Danke schon mal,

werde das mit den Standarticons mal probieren und herausfinden ob es so geht.
Ich möchte auch keine Icons oder dergleichen aus besagter DLL extrahieren, sondern sie direkt von dort laden. Hat dafür jemand einen Hinweis?

_________________
mfg Henry
Kernel32.dll
Ehemaliges Mitglied
Erhaltene Danke: 1



BeitragVerfasst: Mi 09.02.05 18:31 
Henry hat folgendes geschrieben:

Hat dafür jemand einen Hinweis?


Öhm.... Hattest du dir meinen Beitrag mal angesehen? Was funzt denn daran nicht?

Kernel32.dll hat folgendes geschrieben:
Guck dir mal diese Methode der Imagelist an:

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
[...]
var
imagelst: TImageList;
begin
imagelst.masked := false;
imagelst.addimages(STD_FILENEW,nil);
end;


Hinweis: Nicht getestet!!

(steht übrigens alles schön in der Delphi-hilfe :wink: )

[Edit] Das sind ja gar keine Icons, sondern Images...[/Edit]
Henry Threadstarter
ontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic starofftopic star
Beiträge: 619

WinXP Prof. SP3
D6 Prof.
BeitragVerfasst: Mi 09.02.05 18:36 
Kernel32.dll hat folgendes geschrieben:

Öhm.... Hattest du dir meinen Beitrag mal angesehen? Was funzt denn daran nicht?

Da habe ich mich falsch ausgedrückt, das bezog sich nicht auf das Beispiel, sondern ich meine wie man die anderen Images aus der shell32.dll laden kann.
Das sind nicht die Standarticons für öffnen... sondern z.B. Laufwerkicons usw.
Das Beispiel muß ich noch probieren. Das funktioniert schon, denke ich.

EDIT: Ein kleines Problem gibt es doch. Ich bekomme die Meldung [Fehler] Unit1.pas(31): Undefinierter Bezeichner: 'STD_FILENEW'. Muss ich eine bestimmte Unit noch mit einbinden?

_________________
mfg Henry