如何使用MFC在列表控件中插入项目 [英] how to insert item in list control using MFC
本文介绍了如何使用MFC在列表控件中插入项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想更改列表框以及插入项目的颜色,我使用了ownwer draw来更改颜色,但是插入的项目没有显示,如果我删除了ownerdraw,颜色没有改变,但是插入的项目正在显示. .我想要两种方法都可以改变它,请帮助我
谢谢
i want to change the colour of list box as well as to insert item , i used ownwer draw to change the colour but the inserted item is not displaying, if i remove the ownerdraw the colour is not changing but the inserted item is displaying... i want both how to change it,, pls help me
thank you
推荐答案
如果您设置了所有者绘制,则必须提供控件所需的所有信息.在此处看看 [
If you have owner draw set then you have to provide all the information needed by the control. Take a look here[^] at the section on Virtual List-View
styles.
这篇关于如何使用MFC在列表控件中插入项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文