Hi,

I found a solution that requires a bit more system resources but can be done
without modifying ImageList. This solution copies icons from system image
list but maintains a Hashtable to map system image list indexes to the
managed imagelist.

I modified the driver to handle system icons as well.

Note that I want to move well known (Desktop, My Computer, ...) icons to
driver as well so this is a preview-only patch.

ListView seems to be extremely bugous on Windows and I wasn't able to
display a FileDialog on Mono because the process stars to eat all the memory
(including virtual memory) and all the CPU time but displays no window.

Using .NET Framework I was able to test the dialog but it is very bugous.

Furthermore the current ImageList is copying image instead of storing the
original ones like MS.NET does and this results in the loss of
alpha-blending of icons.

Please comment this preview implementation.

Kornél

Attachment: Win32ShellIcon.diff
Description: Binary data

_______________________________________________
Mono-winforms-list maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-winforms-list

Reply via email to