当前注册人数423093人 邮箱: 密码: 注册新用户 忘记密码
首页 C/C++/MFC C# ASP.NET VB.NET MATLAB Android   站内搜索 下载代码说明/积分规则
为什么要注册?

1. 可以直接免费从本站下载代码,防止邮件发送不到您的邮箱,或登录不了国外网站

2. 可以设定关键字,当有您关心的代码收录时,邮件通知您

3. 对这里的代码进行评分和评论

4. 可以和大家一起分享你的源代码,得到更多的建议

ListView with Image on SubItems

C#在ListView中Subitem显示图片

2008年03月05日
C#, Windows, .NET, Win2K, WinXP, .NET 1.0, .NET 1.1, VS, VS.NET2002, VS.NET2003, Dev
这个程序实现了如何在ListView的列中显示图标或者图片,可以用于显示不同Item的状态。
相关知识
OAKListView.LV_ITEM lvi = new OAKListView.LV_ITEM();
// Row of the item

lvi.iItem = 5; 
// Column of the item

lvi.iSubItem = 5;
lvi.pszText = "OAKListView-" + I.ToString();
//Here you pass the mask of the item. In this case 

//the mask is the both, Image and the text

lvi.mask = OAKListView.LVIF_IMAGE | OAKListView.LVIF_TEXT; 
// Image index on imagelist

lvi.iImage = 1;
// Sending a message to make the changes

OAKListView.SendMessage(listView1.Handle, 
         OAKListView.LVM_SETITEM, 0, ref lvi);
源代码原文下载:
ListView with Image on SubItems This article describes how to implement ListView with image on subitems. It's very useful in programs that need to show the status of several items.

源码图片

点击链接查看大图
从本站下载附件及源代码(1个附件,已经成功下载1746次)

最值得关注的外文源代码

Clog - Client Logging, WPF Edition
A Much Easier to Use ListView that Supports Sorting and Grouping
SuperGrid - Yet Another listview control
Drag and Drop Items in a WPF ListView
评论(评论是增加积分的一个有效途径)
字数在300字内
请如实评论
本源代码共评论309次,此处显示最近20次评论! 查看所有评论

sxlpc  2021年11月17日
https://quanmin.baidu.com/sv?source=share-h5&vid=qm_share_search&vid=5076341260957710827&0_wos=3OmL https://quanmin.baidu.com/sv?source=share-h5&vid=5076341260957710827&0_wos=3OmL
wgy起飞  2021年08月14日
zg  2021年08月14日
goodliness  2017年05月02日
学习一下,谢谢!
hupo  2016年12月15日
学习下
jilegeb  2016年09月09日
沒登錄就說不能下載,註冊了就說要兩天後才能下載。。CAO,是不是兩天後在下載又會說需要積分下載,坑B網站
donggan1234  2016年07月20日
wad
天涯沙漠  2015年09月18日
谢谢!
pain  2015年04月18日
谢谢分享
天涯沙漠  2015年04月11日
每天都会增加数十万的优秀文档,养成每天登录一次百度文库的习惯,绝不错过一个优秀的文档!
fresh  2015年04月07日
学习学习
yndxstxy2010jrsx  2015年02月12日
kankana
Hambor  2014年11月16日
谢谢!
chenhua0725  2014年08月01日
看起来还可以
lixiaofei0828  2014年05月09日
学习下
yndxstxy2010jrsx  2014年04月25日
kankana
relife  2013年12月11日
学习!
zheng751175244  2013年09月23日
快乐学习每一天
xiaoyu3523663  2013年09月21日
还不错哦
yhm644  2013年07月26日
很好啊
字数在300字内
请如实评论
200万国内源码搜索
CopyRight (C) codesoso.com 2007-2009 All Rights Reserved zhihuishi   免责声明