Click here to Skip to main content
14,695,387 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi Everybody. I need help about listbox
I would like to add image in listbox column ( first and second column)
How can I add image in my list control.

When I push the button1 add res1.bmp image column 1 and column 2 .
After first change first column and first row to res2.bmp image.
At the end column 1 and column 2 become like res3.

my project:
http://hotfile.com/dl/78974669/0ecc61e/test.zip.htm[^]

ı want my project like this image

http://hotfile.com/dl/78975126/1791a50/sample.jpg.htm[^]
Posted

1 solution

You should use an owner-drawn CListCtrl. Read this[^] article to understand how to deal with the owner-drawing stuffs, then you have to modify the code to add the icon on the second clumn.
   

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