Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Getting the Image for the associated file
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00700460
Message ID:
00700497
Views:
8
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform