Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Retrieval of icons associated with files/applications
Message
 
À
14/08/2001 09:08:41
Jay Johengen
Altamahaw-Ossipee, Caroline du Nord, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00542621
Message ID:
00543466
Vues:
22
>>>> CLASSLIB TO REGISTRY.VCX ADDITIVE && Registry class from the FFC
>>>
>>>George,
>>>
>>>PMFJI, but what is the "FFC" referenced above? Tried your code and it couldn't find the Registry library.
>>>
>>Renoir,
>>
>>There should be an FFC folder right beneath the main VFP one. It's there.
>
>George,
>
>The path result from your code was "C:\Program Files\Microsoft Office\Office\Winword.exe,1" and I'm curious as to what the ",1" means at the end of the line.
>
Renoir,

It represents a zero based offset of the icon in the actual executable. An executable or dynamic link library can contain multiple icons. This little code snippet, demonstrates how to find out how many icons are in a particular EXE or DLL
DECLARE INTEGER ExtractIcon IN Shell32;
  INTEGER hInst, STRING @lpszExeFileName,;
  INTEGER nIconIndex
lcfile = "C:\Program Files\Microsoft Office\Office\Winword.exe"
? ExtractIcon(0, @lcfile, -1)
George

Ubi caritas et amor, deus ibi est
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform