The difference between MDI and SDI
2010-07-29 10:43
555 查看
The chief structural differences between MDI and SDI applications built with MFC are as follows:
MDI applications derive their top-level frame window classes from CMDI-FrameWnd rather than CFrameWnd.
MDI applications use classes based on CMDIChildWnd to represent the child frame windows that frame views of their documents.
MDI applications use CMultiDocTemplate rather than CSingleDocTemplate to create document templates. The frame window class referenced in CMultiDocTemplate's constructor is the child frame window class rather than the top-level frame window class.
MDI applications have at least two menu resources, as opposed to SDI's one. One is displayed when no documents are open; the other is displayed when at least one document is open.
MDI applications derive their top-level frame window classes from CMDI-FrameWnd rather than CFrameWnd.
MDI applications use classes based on CMDIChildWnd to represent the child frame windows that frame views of their documents.
MDI applications use CMultiDocTemplate rather than CSingleDocTemplate to create document templates. The frame window class referenced in CMultiDocTemplate's constructor is the child frame window class rather than the top-level frame window class.
MDI applications have at least two menu resources, as opposed to SDI's one. One is displayed when no documents are open; the other is displayed when at least one document is open.
相关文章推荐
- What is the difference between new/delete and malloc/free?
- The difference between Web role and Worker role in windows azure platform
- The difference between slice() and splice()
- What Is the Difference Between a Block, a Proc, and a Lambda in Ruby
- What is the difference between WM_DESTROY and WM_NCDESTROY?
- The Difference Between Programmer and Hacker
- php中each和print的区别(What is the difference between echo and print?)
- JS advice: Be careful the difference between Undefined and ‘ ’
- Differences Between the Import and Load Utility
- What is the difference between syntax and semantic
- The difference between hard and soft links
- The difference between Failure and Success
- What's the difference between a URI and a URL?
- In SQL, what is the difference between a left join and a left outer join?
- the-difference-between-REST-and-SOAP
- the difference between kernel stack and user stack
- What's the difference between “Normal Reload”, “Hard Reload”, and “Empty Cache and Hard Reload” in c
- What is the difference between CollectionView and CollectionViewSource?
- What’s the difference between USSD, MMI and SS codes
- What is the Difference between ‘Word Automation’ and ‘Word Automation Services’?