ImageList handles

I'm writing an app in C# and need to access the system's image list.

I've wrapped the SHGetFileInfo() command, which (with certain arguments) returns me a handle to the system image list and an index into that list for the icon for the supplied filename. This is currently returned as an IntPtr.

Question is, how do I now use this? I want to display that file with its icon from the system image list?

The ol' C++ CImageList had a nice Attach() function which allowed you to attach a HIMAGELIST to the CImageList. This doesn't seem possible in C#.

How how how how how?

Cheers,

Haydn

[606 byte] By [codefund.com] at [2007-12-16]