简体   繁体   English

列表控件中的MFC对话框组合框

[英]MFC Dialog Combo Box in a List Control

I'm trying to create a dialog window with a List Control (report view) that displays a column of text. 我正在尝试使用列表控件(报表视图)创建一个对话框窗口,该窗口显示一列文本。 I'm trying to add another column that displays a combo box that will hold a list of possible actions for the first column. 我正在尝试添加另一个列,该列显示一个组合框,其中包含第一列可能的操作列表。 Is there any easy way to do this in MFC? 有没有简单的方法在MFC中执行此操作?

You can't do that with something like CListCtrl (or not without a lot of owner drawn code). 你不能用CListCtrl这样的东西(或者没有很多所有者绘制的代码)。 Instead have a look at a 3rd party control like CGridListCtrlEx which will do all the heavy lifting for you. 而是看看像CGridListCtrlEx这样的第三方控件,它将为您完成所有繁重的工作。

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

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