Click here to Skip to main content
15,076,991 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi all,

I want to insert multi images in one row of CListCtrl MFC.
I have created a CImageList and display it in CListCtrl successfully. But just one image in a row. When I assign more than 1 CImageList in CListCtrl, it can't display exactly.

Thanks in advance in any help.

Sorry for my poor English.
Updated 8-Mar-16 7:36am

You can use custom drawing to emulate multiple icons per row.[^]

You should handle item prepaint event to draw your icons in the correct places.
Luong...did you ever solve this problem years ago? I am not sure if you chose to use the LVS_REPORT style. I am, and following this example
Using a Virtual CListCtrl to Display Text and Bitmaps[^]
and tweaking it to test on pItem->iSubItem to display the image in the column you want.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900