Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Folder icon from System Icon List
#1
Hi G,

How to get a folder icon from the system icon index ?

I am getting the "unknown file type" icon for folders...see screenshot !

Using the following code :
Code:
Copy      Help
s = tok2[0] ;;filename
j=findcr(s '.'); if(j>=0) se=s+j; else se=0
SHFILEINFO fi
SHGetFileInfo(se 0 &fi sizeof(fi) SHGFI_SYSICONINDEX|SHGFI_USEFILEATTRIBUTES|SHGFI_SMALLICON|SHGFI_TYPENAME|SHGFI_DISPLAYNAME)

Also, fi.szTypeName and fi.szDisplayName return numbers...how do I convert them to string from use with QM ???


Attached Files Image(s)
   


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)