如何将位图插入到CListCtrl [英] How to insert bitmap to the CListCtrl

查看:86
本文介绍了如何将位图插入到CListCtrl的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

  我知道,如何将位图插入特定列的CListCtrl报告类型模式,我们可以使用cimagelist,但我不知道如何在列表ctrl中使用此imagelist对象在特定列列表项中显示位图

    How to insert Bitmap to the CListCtrl Report Type mode of the particular column ,i know ,we can use  cimagelist ,but i dont know how to use this imagelist object in list ctrl to show a bitmap in particular column list items

 

推荐答案

对列表视图使用LVS_EX_SUBITEMIMAGES样式.然后设置 iImage 插入子项时纠正图像索引.

Use LVS_EX_SUBITEMIMAGES style for listview. Then set iImage to correct image index when inserting subitems.


这篇关于如何将位图插入到CListCtrl的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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