SDI中的对话框和列表控件 [英] dialog and list control in SDI

查看:108
本文介绍了SDI中的对话框和列表控件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我必须实现一个数据包嗅探器GUI.为此,我正在使用SDI.应该有一个用于显示数据包捕获的列表控件.当用户启用一个选项时,将出现一个对话框.我有些怀疑.
1. SDI是否足以满足此类应用程序的使用要求?我应该使用MDI吗?
2.如何在列表控件的底部显示对话框X?

Hi,
I have to implement a packet sniffer GUI. For this, i am using SDI. There should be a list control for showing packet capture. When user enables an option a dialog box should appear. I have some doubts.
1. Is SDI enough for such an application or should i use MDI?
2. How to show the dialog box X, in the bottom of the list control?

推荐答案

SDI已经足够.您可以使用选项卡式界面(推荐)随心所欲地坚持下去.帮自己一个忙,从不使用MDI :
http://en.wikipedia.org/wiki/Multiple_document_interface#Disadvantages [在WPF中使用MDI窗口的问题 [ ^ ],
提供错误的MDIContainer [
-SA
SDI is quite enough. You can stick into it as much as you need, using, say, tabbed interface (recommended). Do yourself a big favor, never use MDI:
http://en.wikipedia.org/wiki/Multiple_document_interface#Disadvantages[^],
Question on using MDI windows in WPF[^],
MDIContainer giving error[^].

What is "dialog box X"? How it can be in the button of list control? A part of list control (which seems impossible) or just directly under? What is the purpose of it?

—SA


1. SDI应该足够了……哎呀,对于一个包嗅探器GUI来说,一个简单的对话框就足够了.

2.如果要在控件中嵌入窗口,则可能必须在控件内动态创建窗口(使用Create()),并且可能必须自己绘制控件(尽管您不必这样做,视情况而定).许多人似乎认为不可能将东西嵌入控件中(或非常困难),但是MFC是面向对象的,因此很有可能(但并不总是很困难).您只需掌握如何绘制事物以及如何定义包含的矩形并在需要时覆盖绘制处理程序即可.
1. SDI should be enough... heck, for a packet sniffer GUI even a simple dialog would should be enough.

2. If you want to embed a window in a control, you''ll probably have to dynamically create the window (using Create()) within the control and may have to draw out the control yourself (although you may not have to, depends on the situation). A lot of people seem to think embedding things into controls is impossible (or very hard), but MFC is object oriented, so it''s very possible (and not always very hard). You just have to have a good grasp of how things are drawn out and how to define the containing rectangle and override the drawing handlers if need be.


这篇关于SDI中的对话框和列表控件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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