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