Share via


CMDIFrameWnd::MDICascade

カスケードの形式のすべての MDI 子ウィンドウを並べ替えます。

void MDICascade( );
void MDICascade(
   int nType 
);

パラメーター

  • nType
    カスケードのフラグを指定します。次のフラグだけを指定できます: MDITILE_SKIPDISABLED、無効な MDI 子ウィンドウには、カスケードことを回避できます。

解説

MDICascadeの一つ目のバージョンは、パラメーターを指定せずに、無効なものを含むすべての MDI 子ウィンドウを、カスケード。2 番目のバージョンは、必要に応じて nType のパラメーターに MDITILE_SKIPDISABLED を指定すると無効な MDI 子ウィンドウの連鎖。

使用例

// CMainFrame::OnWindowCommand() is a menu command handler for
// CMainFrame class, which is a CMDIFrameWnd-derived
// class. It handles menu commands for the Windows pop-up menu.
// Its entries in the message map are of the following form:
//  ON_COMMAND_EX(ID_WINDOW_ARRANGE, &CMainFrame::OnWindowCommand)
BOOL CMainFrame::OnWindowCommand(UINT nID)
{   
   switch (nID)
   {
   case ID_WINDOW_ARRANGE:   // For Window\Arrange Icons menu item, arrange
      MDIIconArrange();     // all minimized document child windows.
      break;

   case ID_WINDOW_CASCADE:  // For Window\Cascade menu item, arrange
      MDICascade();         // all the MDI child windows in a cascade format.
      break;

   case ID_WINDOW_TILE_HORZ:       // For Window\Tile Horizontal menu item, 
      MDITile(MDITILE_HORIZONTAL); // tile MDI child windows so that
      break;                       // one window appears above another.

   case ID_WINDOW_TILE_VERT:       // For Window\Tile Vertical menu item, 
      MDITile(MDITILE_VERTICAL);   // tile MDI child windows so that
      break;                       // one window appears beside another.

   }

   return TRUE;
}

必要条件

ヘッダー: afxwin.h

参照

関連項目

CMDIFrameWnd クラス

階層図

CMDIFrameWnd::MDIIconArrange

CMDIFrameWnd::MDITile

WM_MDICASCADE