如何在列表控件的第二列中添加图像? [英] how can ı add image to second column in list control?

查看:75
本文介绍了如何在列表控件的第二列中添加图像?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好.我需要有关列表框的帮助
我想在列表框列(第一列和第二列)中添加图像
如何在列表控件中添加图像.

当我按下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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆