CMDIFrameWnd::MDICascade

排列重疊顯示格式的所有 MDI 子視窗。

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

參數

  • nType
    指定重疊顯示旗標。 只有下列旗標可指定: MDITILE_SKIPDISABLED,防止停用 MDI 子視窗的下拉式清單。

備註

MDICascade第一個版本,而不使用參數,下拉式所有 MDI 子視窗,包含停用這些。 如果您為 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;
}

需求

Header: afxwin.h

請參閱

參考

CMDIFrameWnd 類別

階層架構圖

CMDIFrameWnd::MDIIconArrange

CMDIFrameWnd::MDITile

WM_MDICASCADE