如何在列表控件的第二列中添加图像? [英] how can ı add image to second column in list control?
问题描述
大家好.我需要有关列表框的帮助
我想在列表框列(第一列和第二列)中添加图像
如何在列表控件中添加图像.
当我按下button1时,添加res1.bmp图像的第1列和第2列.
首先将第一列和第一行更改为res2.bmp图像.
最后,第1列和第2列变得像res3.
我的项目:
http://hotfile.com/dl/78974669/0ecc61e/test.zip.htm [ ^ ]
我想让我的项目像这张图片一样
http://hotfile.com/dl/78975126/1791a50/sample.jpg.htm [ ^ ]
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[^]
推荐答案
您应该使用所有者绘制的 CListCtrl
.阅读此 [
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.
这篇关于如何在列表控件的第二列中添加图像?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!