我需要一个使用对话框作为项目的列表控件. [英] i need a list control which use a dialog as item.

查看:81
本文介绍了我需要一个使用对话框作为项目的列表控件.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

现在有很多列表框或listctrl控件使用过程栏,组合框...作为项;
但我希望列表控件将对话框用作项目,
有没有人看到过这种控制?
你能给我一个网址吗?
谢谢!

Now there are many listbox or listctrl control use process bar ,combobox ...as item;
but i want a list control use dialog as item,
Is there somebody had seen this kind of control?
can u give me a url?
thank u!

推荐答案

也许滚动控制 [ ^ ]可能会给您一些想法.
Maybe the Rollup Control[^] could give you some ideas.


我不知道这是否行得通,但请看一下在选项卡控件之类的对话框中嵌入对话框.此处此处 [此处 [
I dont know if this will work, but take a look at embedding dialogs in things like tab controls. There is an article here[^] which does it simply.
Then take a look at an article that embeds something else in a listctrl. A pretty simple one can be found here[^].

Then just change the row height and you''re set.


这对于UI来说似乎很奇怪.如果只想在此处显示一个只读对话框,则可能不需要嵌入对话框.而是使用自定义绘图/绘画来显示所需的所有数据,并使它看起来像一个对话框.

另一方面,如果要在其中获得可编辑的对话框,也许应该考虑使用更高级的控件,例如MFC网格控件.然后使用特定于网格的可嵌入子控件自定义行,使其看起来像实际的对话框.那将是解决此类问题的更常见方法.
This seems rather odd for an UI. If you just want to show a read only dialog there, you may not need to embed a dialog. Instead use custom drawing/painting to show all the data you want to, and make it look like a dialog.

On the other hand if you want to get an editable dialog in there, perhaps you should be looking at using a more advanced control such as an MFC grid control. And then customize the rows to look like actual dialogs using Grid-specific embeddable child controls. That would be a more common approach to this sort of problem.


这篇关于我需要一个使用对话框作为项目的列表控件.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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