When an application runs under Microsoft Windows, the user interacts with documents displayed in frame windows. A document frame window has two major components: the frame and the contents that it frames. A document frame window can be a single document interface (SDI) frame window or a multiple document interface (MDI) child window. ——摘自MSDN
类结构
SDI Application仅仅使用一个框架窗口(顶层框架窗口)作为应用程序的主窗口并包含打开文档的视图;MDI Application具有两个窗口:顶层框架窗口以及“子框架窗口”(也称文档框架窗口),子框架窗口在顶层框架窗口中浮动,用来包含打开文档的视图。
消息映射与命令传递