您的位置:首页 > Web前端

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.
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: