1. 将TFrmMain.IsMDIContainer = true,即可设置TFrmMain设置为Application的主窗体。
2. 将TFrmChild设置为MDI子窗体,用:frmChild.MDIParent = frmMain即可。