Information générale
Catégorie:
Fonctions Windows API
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
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement