Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How To Get An Icon From An EXE
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
How To Get An Icon From An EXE
Miscellaneous
Thread ID:
00436737
Message ID:
00436737
Views:
58
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
Next
Reply
Map
View

Click here to load this message in the networking platform