CMDIChildWnd::MDIDestroy

调用该成员函数销毁MDI子窗口。

void MDIDestroy( );

备注

成员函数从框架窗口移除子窗口的标题和停用子窗口。

示例

// CMainFrame::OnCloseWindow() is a menu command handler for
// CMainFrame class, which in turn is a CMDIFrameWnd-derived 
// class. It closes and destroys the current active MDI child window. 
void CMainFrame::OnCloseWindow() 
{
   CMDIChildWnd* child = MDIGetActive();
   if (child)
      child->MDIDestroy();
}

要求

Header: afxwin.h

请参见

参考

CMDIChildWnd选件类

层次结构图

WM_MDIDESTROY

CMDIChildWnd::Create