Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
voidMDIDestroy();
Remarks
Call this member function to destroy an MDI child window.
The member function removes the title of the child window from the frame window and deactivates the child window.
Example
// 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();
}
CMDIChildWnd Overview | Class Members | Hierarchy Chart
See Also , CMDIChildWnd::Create