Using Win32Lib's geFileInfo to show system icon
All,
I'm trying to use Win32Lib's getFileInfo() function to display the small icon
for a given file. The trick here is the file is not on the PC. According to
MSDN, if I use SHGFI_USEFILEATTRIBUTES with FILE_ATTRIBUTE_NORMAL then this
should give me the icon index even if the file doesn't exist. Here's a code
snippet:
file_info = getFileInfo(trim(dir_data[i][2]),
FILE_ATTRIBUTE_NORMAL,
or_all({SHGFI_USEFILEATTRIBUTES,
SHGFI_SYSICONINDEX,
SHGFI_SMALLICON}))
Then this should return the handle/index of the small icon. Once I have that,
how do I use addTVItem() to display this icon? I can't seem to put these
together in my mind and was hoping someone has already done this.
Thanks!
Jonas Temple
http://www.yhti.net/~jktemple
|
Not Categorized, Please Help
|
|