如何在CList Ctrl中的所需列中添加复选框选项? [英] How to add check box option in CList Ctrl in desired column?

查看:78
本文介绍了如何在CList Ctrl中的所需列中添加复选框选项?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hello Guys ...

我在很多应用程序中使用CListCtrl。但是当我使用复选框选项时,

它只显示在CListCtrl的第一列。但我想在任何想要的专栏中使用它。所以请找出我的解决方案。

感谢你..

Hello Guys...
I'm using CListCtrl in so many applications. But when i'm using checkbox option,
it shows only in first column of CListCtrl. But i want to use it in any desired column. So plz find out my solution.
Thanking You..

推荐答案

例如,参见这个代码项目文章:XListCtrl - 自定义-ubite list control with subitem formatting [ ^ ]。
See, for instance, this Code Project article: "XListCtrl - A custom-draw list control with subitem formatting"[^].


列表控件仅在最左侧列中提供复选框。它主要用于Windows资源管理器中,用于列出文件和文件夹。



您可以对列表控件进行子类化,并将自己的复选框控件放在特定单元格上。这是很多工作。



另一种选择是用自定义网格控件替换列表控件。有很多选择。许多都可以作为CP文章找到。
The list control only offers check box in left most column. It was designed for use primarily in Windows Explorer for listing files and folders.

You can subclass the list control and place your own check box control over a specific cell. This is a lot of work.

Another option is to replace the list control with a custom grid control. There a quite a few choices available. Many can be found as CP articles.


这篇关于如何在CList Ctrl中的所需列中添加复选框选项?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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