I need to display a number of files in a listview control. How do I find the default Icon for the selected file, and how do I save it to a ListImage control ?
I use the code below :
lRet = SHGetFileInfo(spath, 0&, shFileStruct, Len(shFileStruct), SHGFI_ICON)
Call DrawIcon(Picture1.hdc, 0, 0, shFileStruct.hIcon)
Will paint a picturebox with the icon, but what to do next ??