03-29-2007, 08:24 PM
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 :
Also, fi.szTypeName and fi.szDisplayName return numbers...how do I convert them to string from use with QM ???
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 :
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 ???