Hi,
I want the small images of different file formats (docx,ppt,txt etc.) to display along with the file names of corresponding type.
Any link to get these images?
TIA.
Hi,
I want the small images of different file formats (docx,ppt,txt etc.) to display along with the file names of corresponding type.
Any link to get these images?
TIA.
If you want to display a file list with the associated icons showing net to the file name in your program, you can use the SHCreateFileExtractIcon Function from the shell extension of Windows. It extracts the associated icon for a given file.
HRESULT SHCreateFileExtractIcon(
LPCTSTR pszFile,
DWORD dwFileAttributes,
REFIID riid,
void **ppv
If you want to have the exact icons that are associated with files at any time, this is the way to go. You could always store these icons you obtain to disc to come up with your own set of icons.