如何在CListBox中添加文本左侧添加图标 [英] How to include an icon to the left of added text in a CListBox

查看:296
本文介绍了如何在CListBox中添加文本左侧添加图标的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我搜索谷歌无济于事。该过程是否与图像(图标)添加到CTreeCtrl的方式几乎相同?我有一个CTreeView的工作代码,并在文本左侧添加图标。任何指向工作代码的链接都将非常感激。感谢
你。

解决方案

我在详细模式下使用listview控件 - 它们支持图像。


Dave


通过社区论坛NNTP Server 1.1.55.0" <

I have searched Google to no avail. Would the process be almost the same as how images (icons)s get added to a CTreeCtrl ? I have working code for a CTreeView and adding icons to left of text. Any links to working code would be greatly appreciated. Thank you.

解决方案

I'd use a listview control in details mode - they support images.

Dave


这篇关于如何在CListBox中添加文本左侧添加图标的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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