[Mono-winforms-list] Win32ShellIcon preview

Kornél Pál kornelpal at hotmail.com
Wed Sep 14 11:35:30 EDT 2005


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.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: Win32ShellIcon.diff
Type: application/octet-stream
Size: 12095 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/mono-winforms-list/attachments/20050914/0ffacf58/Win32ShellIcon-0001.obj

More information about the Mono-winforms-list mailing list