Contents Index Topic Contents | ||
Previous Topic: IShellFolder::SetNameOf Next Topic: IShellIcon::GetIconOf |
IShellIcon
The IShellIcon interface is used to obtain an icon index for an IShellFolder object. IShellIcon allows an application to obtain the icon for any object within a folder by using only one instance of the interface. IExtractIcon, on the other hand, requires that a separate instance of the interface be created for each object.
When to Implement
Implement IShellIcon when creating an IShellFolder implementation to provide a quick way to obtain the icon for an object in the folder.
If IShellIcon is not implemented by an IShellFolder object, IShellFolder::GetUIObjectOf is used to get an icon for all objects.
When to Use
Use IShellIcon when retrieving the icon index for an item in a shell folder.
IShellIcon Method Description GetIconOf Retrieves an icon for an object in a folder.
Top of Page
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.