|
-
Apr 17th, 2001, 05:28 AM
#1
Thread Starter
Addicted Member
I'm having a problem retrieving the default icon picture on a few file types.
Usually you lookup the file extension (e.g. HKEY_CLASSES_ROOT\.doc) and read the default value.
You then find the key under the HKEY_CLASSES_ROOT with the same value (e.g. HKEY_CLASSES_ROOT\Word.Document.8), and under that key there should be a DefaultIcon key. The default value of the DefaultIcon key should tell you the file where the icon lives and which icon to use (e.g. C:\Program Files\Microsoft Office\Office\Winword.exe,1).
The problem I'm having is that some file types have a %1 stored in the DefaultIcon key. The HKEY_CLASSES_ROOTS\exefile\DefaultIcon and HKEY_CLASSES_ROOTS\visio.drawing.6\DefaultIcon file types are examples of this.
My question is how do you work out the Default Icon, when the DefaultIcon registry setting is set to %1?
Thanks in advanced.
Last edited by VB6Coder; Apr 17th, 2001 at 06:50 AM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|