Autor Beitrag
derDoc
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 623

Win Vista Prof
D2007 Prof
BeitragVerfasst: Mi 01.10.03 15:41 
Ich habe folgendes Problem:

Ich habe ein Programm, für das ich eine Dateierweiterung registriere. Ich schreibe auch ein passendes DefaultIcon in die Registry. Aber ich weiß nicht, wie ich nun den IconCache aktualisieren kann, sodass das Icon auch benutzt wird.

Wenn ich die Endung als '.sfk' registriere, als Standard 'MeinProgramm' schreibe, den Schlüssel 'MeinProgramm\DefaultIcon' (beides) erstelle und dort als Standard 'C:\MeinIcon.ico,0' eintrage, behält die Datei das Standard Icon für nicht registrierte Dateitypen.

Wie kann ich also den IconCache aktualisieren, damit die Änderungen auch sichtbar werden?

_________________
MfG derDoc
There are only 10 types of people: those who understand binary and those who don't.
MathiasSimmack
Ehemaliges Mitglied
Erhaltene Danke: 1



BeitragVerfasst: Mi 01.10.03 16:40 
ausblenden Delphi-Quelltext
1:
SHChangeNotify(SHCNE_ASSOCCHANGED,SHCNF_IDLIST,nil,nil);					

Ich glaube, die Unit ShlObj ist dazu noch erforderlich.
derDoc Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 623

Win Vista Prof
D2007 Prof
BeitragVerfasst: Sa 04.10.03 07:14 
Danke
Das ist genau das, was ich gesucht hatte.

_________________
MfG derDoc
There are only 10 types of people: those who understand binary and those who don't.
JayK
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 1013



BeitragVerfasst: Di 07.06.05 19:56 
Gilt das auch, wenn man den Kompletten Cache einfach aktualisieren will?
Also auch, wenn man die Windows-Icons (Ordner, Verknüpfung, ...) in der Registry verändert hat?
MathiasSimmack
Ehemaliges Mitglied
Erhaltene Danke: 1



BeitragVerfasst: Di 07.06.05 22:12 
Warum fragst du? Probier´s einfach. ;) Was soll passieren? Explodieren wird der PC davon nicht. :)
JayK
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 1013



BeitragVerfasst: Mi 08.06.05 13:59 
user profile iconMathiasSimmack hat folgendes geschrieben:
Warum fragst du? Probier´s einfach. ;) Was soll passieren? Explodieren wird der PC davon nicht. :)
Schon klar :) , aber so muss jetzt erstmal daruaf warten, bis ich mal wieder da was geändert habe... Hätte ja sein können, dass mir das auch ohne probieren jemand beantworten hätte können.
JayK
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 1013



BeitragVerfasst: Sa 25.06.05 11:01 
Also, ich habs gestern endlich mal Probieren können, denn ich hab zum Testen eines meiner anderen Progs das Ordnersymbol wieda verändert. Die Änderung hat man nach dem Aufruf des Programms mit dem SHChangeNotify-Teil nicht gesehen!
Also: Wie Rebuilded man den kompletten Icon Cahche neu?
JayK
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 1013



BeitragVerfasst: So 10.07.05 21:20 
Dafür muss es doch auch irgendso einen API-Befehl geben. In TweakUI gibts schließlich auch einen Knopf dafür und in vielen anderen Progs auch...
Wie geht das mit dem Rebuild IconCache???