
Getting default icon for a file type
SHGetFileInfo
If the uFlags parameter includes the SHGFI_USEFILEATTRIBUTES flag, this
parameter does not have to be a valid file name. The function will proceed
as if the file exists with the specified name and with the file attributes
passed in the dwFileAttributes parameter. This allows you to obtain
information about a file type by passing just the extension for pszPath and
passing FILE_ATTRIBUTE_NORMAL in dwFileAttributes.
--
Quote:
>Hello.
>I have a report view of files in a directory. I don't know
>how should I do to assign the default icon, or where can I
>load this icon in my CImageList.
>I. e. I want to show the files with her normal icon, like the
>explorer.
>Thanks in advance.