Re: Using Win32Lib's geFileInfo to show system icon

new topic     » goto parent     » topic index » view thread      » older message » newer message

Yes, setting a Treeview control to use the system imagelist will will not allow
the use of Win32Lib's imagelist for the treeview. For normal images a Treeview
can use only one imagelist at one time.

When Win32Lib adds an image to it's imagelist it checks for duplicate handles
but this may not help you much. I don't know how getFileInfo manages the image
handles that it creates and it probably varies on different systems. These image
handles are owned by the application and the system has no idea how they may be
used. If a new image is created for the same file or folder then Win32Lib will
add it to the list.

If the Treeview were created and the populated only once there should be no
problem. But if the same directories are repeatedly accessed and updated in the
treeview there will likely be problems over time, particularly with Win98. If I
knew more of what you were trying to accomplish I may be able to help more.

Larry Miller

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu