Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Extract Associated Icon to a Treeview
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00668799
Message ID:
00669441
Vues:
29
I have been passing 0 as the IconIndex. Perhaps I am trying to accomplish the wrong task: I am not trying to extract an icon from an EXE file, but I want to display the icon of the application associated with a file extension. For Example, a file with a '.doc' extension will display the MS Word icon. Am I using the wrong API? If so, which one does Windows Explorer use?

Thanks for your patience and rapid response.

Troy

>>hIcon remains 0 after the call to ExtractIconEX(). I have tried different files with the same result.
>
>That's the problem then. Icon indexes are 0 based. If there are six icons in the file, they're numbered 0 through 5. 0 will return the first icon. Try that, and see if the object doesn't properly initialize.
>
>I fixed my problem, BTW. Had the wrong version of the ImageList loaded (Doh!).< g >
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform