Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How To Get An Icon From An EXE
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
How To Get An Icon From An EXE
Divers
Thread ID:
00436737
Message ID:
00436737
Vues:
59
In the registry under HKEY_CLASSES_ROOT, for an MS Word document there is an entry entitled .DOC.

The default value for it is set to "Word.Document.8"

When I scroll down to "Word.Document.8", there is a node entitled DefaultIcon, which has it's default
value set to:

C:\Program Files\Microsoft Office\Office\Winword.exe,1


Armed with the above info, I now know that the icon used to display Word documents is the first icon in the Winword.Exe.

How can I use this information to display file type icons in a TreeView control? In other words, how can I "extract" the icon from the EXE and use
it in the treeview/imagelist controls?
Everything makes sense in someone's mind
public class SystemCrasher :ICrashable
In addition, an integer field is not for irrational people
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform