EntryTypeIconExtractor is called by EntryTypeDictionary to retrieve Icon of a file type, which is defined by a number of EntryFilters, each EntryFilter may associate with an EntryTypeIconProvider.

EntryTypeIconProvider provides an Icon to a folder or file type, which is represents by IEntryFilter, currently there are two types of EntryTypeIconProvider:
COFE.Core ResourceIconProvider Obtain icon from resource, so the result icon is either file or folder, for test purpose.
COFE.IO ShellIconProvider Obtain icon from its ShellImageList, which calls WINAPI.

When ConstructionIcon() is called, EntryTypeIconExtractor calls the GetIconStream() method of each associated IconProvider, and combine them as output.

Last edited Nov 15, 2012 at 4:13 AM by lycj, version 4


No comments yet.