Autor Beitrag
jupp
Hält's aus hier
Beiträge: 1



BeitragVerfasst: Mo 21.10.02 19:33 
Wie man eine Verknüpfung erstellt ist ja in den FAQ gut erklärt, aber wie weise ich der Verknüpfung ein anderes als das Standardicon zu. Von Hand geht es ja (rechtsklick-eigenschaften-anderes symbol usw.), also müsste es doch auch programmgesteuert gehen.

In der WIN-SDK steht etwas von:
WIN-SDK hat folgendes geschrieben:
Set the location (path and index) of the icon for a shell link object:
ausblenden Quelltext
1:
2:
3:
4:
5:
HRESULT STDMETHODCALLTYPE SetIconLocation(
    ISHELLLINK FAR *pShlLnk,  
    LPCSTR pszIconPath,  
    int iIcon  
   );


Parameters
pShlLnk : Pointer to the IShellLink interface. In C++, this parameter is implicit.
pszIconPath : Pointer to a buffer that contains the path of the file containing the icon.
iIcon : Index of the icon.
Return Values : Returns NOERROR if successful or an OLE-defined error value otherwise.

See Also
IShellLink


aber da blicke ich leider nicht durch. Weiss jemand einen Rat?

Im Voraus vielen Dank
Tino
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Veteran
Beiträge: 9839
Erhaltene Danke: 45

Windows 8.1
Delphi XE4
BeitragVerfasst: Di 22.10.02 09:24 
Hi,

hab den FAQ-Beitrag erweitert. Jetzt hast Du die Möglichkeit ein Icon für die Verknüpfung anzugeben.

Gruß
TINO