Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Retrieval of icons associated with files/applications
Message
 
To
13/08/2001 12:22:20
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00542621
Message ID:
00543093
Views:
35
>George
>
>What value does "lcValue" have, please?
>
>Dennis

The variable can receive different looking pieces of information. For example, in my sample using the ".doc" extension, what it will have is "Word.Document.8" (on my machine). If, however, the extension was ".htm" it will contain "htmlfile".

In both instances these would be used to find the path in the registry where the "DefaultIcon" key is. In the first case, it would be:

HKEY_CLASSES_ROOT\Word.Document.8\DefaultIcon

In the second:

HKEY_CLASSES_ROOT\htmlfile\DefaultIcon

In both instances, the Default value in the key points to the source of the icon. Again, in both instances, these are executables, but could be an icon file.

With the registry class provided by the FFC, if the root hive (in this case HKEY_CLASSES_ROOT) isn't specified, then it uses HKEY_CLASSES_ROOT.
George

Ubi caritas et amor, deus ibi est
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform