简体   繁体   English

如何将CProgressCtrl添加到CListCtrl

[英]How to add CProgressCtrl to a CListCtrl

I'm looking to add a progress bar to an index in a list control. 我正在寻找一个进度条添加到列表控件中的索引。 I know there isn't a simple command to do this and requires a type of drawing but I can't find any good explanations on how to go about accomplishing this. 我知道没有一个简单的命令可以执行此操作,并且需要一种绘图类型,但是我找不到有关如何完成此操作的任何很好的解释。 I have a mediocre understanding of MFC so this might be a little advanced but I was hoping someone could give me a good example of how to do this or point me to a link that explains something similar to this. 我对MFC有一定的了解,因此可能有些高级,但是我希望有人可以给我一个很好的示例,说明如何执行此操作,或者指向指向解释类似内容的链接。

Your question is somewhat unclear - do you want a single CProgressCtrl for a CListCtrl or multiple ones? 您的问题尚不清楚-您要一个CListCtrl还是单个CProgressCtrl

Regardless, you may find this article from CodeProject of interest, as it includes a ready-made control. 无论如何,您可能会从感兴趣的CodeProject中找到此文章,因为它包含一个现成的控件。 No guarantees on the quality of the control, but it should at least get you started. 不能保证控件的质量,但至少可以帮助您入门。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM