Autor Beitrag
DataCool
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 112



BeitragVerfasst: Mi 05.03.03 10:03 
Hi,

im Tipp:
www.swissdelphicente...showcode.php?id=1115

wird beschrieben wie man einen Button im Internet Exploer hinzufügt.

Hierzu habe ich drei Fragen :

1. Wenn ich mit meinem Button keine Anwendung sondern nur einen Link öffnen will, wie mache ich das ?

2. Woher bzw. wie bekomme ich ClassID bzw. wie benutze ich GUIDToString ?

3. Im Tipp wird nur beschrieben wie man Icons aus der shell32.dll benutzt, wie kann man Icons der eigenen Anwendung benutzen ?
Ich habe bei mir in der Registry nachgeschaut und bei mir stehen als Extensions ICQ u. der MSM drin bei ICQ steht beim Eintrag Icon der Wert :
C:\Programme\ICQ\ICQ.exe,1084
Wie bekomme ich die Numer bzw. die Adresse des Icons in der Exe ?

Data

_________________
DataCool
Moritz M.
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 1672



BeitragVerfasst: Mo 10.03.03 22:18 
Also, ich übernehmne keinerlei verantwortung für falsche Antworten:
1)Du schreibst bei exec einfach statt C:\irgendwas soundso
2)Nimm einfach die vorgegebene.
3)Ich schätze, dass das vor dem Komma der Pfad des Programms ist und das nach dem Komma der Index des Icons. Versuchs mal mit DEINPFAD,0 oder DEINPFAD,1
MaxiTB
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 679

Win2000, WinXp, Workbench ;-)
D7 Ent, VS2003 Arch.
BeitragVerfasst: Di 11.03.03 16:07 
Titel: Kann da nur bei letztern weiterhelfen ...
Die Iconsache ist nämlich ziemlich einfach.

In der Tat, der String vor dem Komma ist der Pfad+Dateiname.

Die Zahl gibt den Index an ... und zwar den Index der Resource. Daher die erste Icon-Resource hat die Nummer 0 (normalerweise auch das Programm-Icon), die weiteren Icons müssen eben eventuell als Resource eingebunden werden.
Moritz M.
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 1672



BeitragVerfasst: Di 11.03.03 16:10 
Dann weiß ich das nun auch...;)