I have a ClistCtrl in a Dialog.
In the CListCtrl, I am displaying the File name and Path, etc. I need to display the System Icon for each file.

I know that I need to call

SHFILEINFO sfi;
HIMAGELIST himl = (HIMAGELIST)SHGetFileInfo(
_T("C:\\"),
0,
&sfi,
sizeof(SHFILEINFO),
SHGFI_SMALLICON | SHGFI_SYSICONINDEX
);

to get the handle to the system Icons. I should then create a Image List.

This is my question; How should I make the Image List and the How can I use it.

Any help, sample code, etc will be help ful.

Thanks

Mike