1. Re: shell32.dll icons
- Posted by wolfgang fritz <wolfritz at king.igs.net> Dec 15, 2000
- 352 views
As I mentioned to Dan, you can extract shell32.dll icons using a simple variation of win32lib's extractIcon(), as follows: function myextractIcon( sequence name, atom index ) -- where index is the icon number -- atom icon, ptr ptr = allocate_string( name ) icon = c_func( xExtractIcon, {0, ptr, index } ) free(ptr) return icon end function In the Listtreeview.exw example, you could use something like this: sequence here here = "c:\\windows\\system\\shell32.dll" constant closefolder = addIcon( myextractIcon( here ,3 ) ), openfolder = addIcon( myextractIcon( here ,4 ) ), There are 72 rather simple icons in shell32.dll . ... seems to work without an instance handle ? Wolf