ALL


  Get associated file icon with only extension name using C++ on Windows

I have searched on Google for a few examples on how to get associated file icon with only file extension name using C++ on Windows. There are some useful information provided on MSDN which explains the use of SHGetFileInfo() function.It also gives an example code, but it doesn't say how to do it with only the extension name.  Here I give an example code on how to achieve this after I gathered and summarized some  useful information from Internet. I have tested the code on my PC, it works fine./* * @method * getFileIcon() * @param * int : icon type--FILE_ICON_SMA...

14,446 0       WINDOWS C++ FILE ICON ASSOCIATION EXTENSION NAME


  Get the 48×48 or 256×256 icon of a file on Windows

Getting the 16×16 and 32×32 icons on Windows is relatively easy and is often as simple as one call to ExtractIconEx.However, getting the extra large (48×48) and jumbo (256×256) icons introduced respectively by XP and Vista is slighly more complex. This is normally done by:Getting the file information, in particular the icon index, for the given file using SHGetFileInfoRetrieving the system image list where all the icons are storedCasting the image list to an IImageList interface and getting the icon from thereBelow is the code I’m using in Appetizer to retrieve the extra...

9,953 0       WINDOWS FILE ICON FILE EXTENSION ASSOCIATION LARGE ICON