Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Getting the Image for the associated file
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00700460
Message ID:
00700497
Vues:
9
>Hi, everybody!
>
>Maybe the title wasn´t quite clear... :)
>
>When we take a look on files through the windows exmplorer, we can see that the icon for each file is the one from the associated program that will execute them. Is there anyway that I could give an extension, and get the image of the program associated to that extension?
>
>TIA

Claudio,

The icon references are stored in the registry. Most applications have multiple icons stored internally that the user can select to associate the file with. The API call that would be needed is ExtractAssociatedIcon(). My Icon Extractor programming in the download section extracts icons from the executable or DLL. It isn't a major change, however, to replace the ExtractIcon call with the one mentioned previously.
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