Re[2]: Icon of documents
Thanks very much! I was able to get the icon using that.
I will send the routines to Rob.
SHGetFileInfo wrapper
by Aku 2003
=====================
global function shGetIcon(object nf)
: get the hIcon of a file
nf = the file name to get the icon from
return icon handle (hIcon), 0 on failure
global function shGetType(object nf)
: get the type (e.g. abc.txt = Text Document)
nf = the file name to get the type from
return file type (string), "" on failure
global function shGetDisplay(object nf)
: get the display name (e.g. c:\windows\notepad.exe = NOTEPAD.EXE)
nf = the file name to get the display name from
return display name (string), "" on failure
______________________________________________
>>Using extractIcon(file) on Win32lib, I can get the file's icon, but
>>for executable only. How about getting the default icon for other
>>files, like in Explorer? (e.g. txt, doc, bmp).
>>
>>Thanks!
>>
G> Look for SHGetFileInfo api function.
G> -George
|
Not Categorized, Please Help
|
|