次の方法で共有


CMDIChildWnd::MDIDestroy

更新 : 2007 年 11 月

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();
}

必要条件

ヘッダー : afxwin.h

参照

参照

CMDIChildWnd クラス

階層図

WM_MDIDESTROY

CMDIChildWnd::Create

その他の技術情報

CMDIChildWnd のメンバ