在MFC中,SDI与MDI有哪些区别?
请告知!!
请告知!!
解决方案 »
- 关于使用openssl库的问题……
- 父进程死了,子进程会挂吗?
- 如何将鼠标选定的跟踪目标区域坐标值赋给要调用它的函数?
- MFC网络编程的初级问题,服务器端监听不成功
- 请问有很多程序有一个.ini文件, 程序里有没有专门的函数处理这个, 还是就像处理普通的文件?
- 专家分到底有什么用,星级是怎么评出来的
- 在创建MFC DLL时如何输出函数或类???
- 为何编译,连接时总会出会这种情况??
- 怎么将一张真彩色位图设置多文档程序的MainFrame背景??
- 为什么用XML接口来写xml还会出现不完整的元素?
- 请问,线程内可不可以加定时器?
- ●怎样实现:在EDIT框里限定某些字符的输入?(比如不许空格输入)●
SDI就只有一个FRAME.哈哈.
具体的不同呢,新建一个SDI和一个MDI,比较它们的代码就知道了.
SDI就只有一个FRAME.
据个例子:
word就是mdi
写字版及时sdi好好看看书
The MFC library supports two distinct application types: Single Document Interface (SDI) and Multiple Document Interface (MDI). An SDI application has, from the user's point of view, only one window. If the application depends on disk-file "documents," only one document can be loaded at a time. The original Windows Notepad is an example of an SDI application. An MDI application has multiple child windows, each of which corresponds to an individual document. Microsoft Word is a good example of an MDI application. When you run AppWizard to create a new project, MDI is the default application type. For the early examples in this book, you'll be generating SDI applications because fewer classes and features are involved. Be sure you select the Single Document option (on the first AppWizard screen) for these examples. Starting with Chapter 18, you'll be generating MDI applications. The MFC library application framework architecture ensures that most SDI examples can be upgraded easily to MDI applications. ......