다음을 통해 공유


CMDIFrameWnd::MDICascade

모든 MDI 자식 창 형식 모두에 배열합니다.

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

매개 변수

  • nType
    캐스케이드 플래그를 지정합니다.만 다음 플래그를 지정할 수 있습니다: MDITILE_SKIPDISABLED에 방지 비활성된 MDI 자식 창을 계단식으로 배열 되 고.

설명

첫 번째 버전의 MDICascade, 매개 변수 없이, 사용 안 함 항목을 포함 하 여 모든 MDI 자식 창을 계단식으로 배열 합니다.지정 하는 경우 두 번째 버전 선택적으로 MDI 자식 창이 없습니다 모두 비활성화 하지 MDITILE_SKIPDISABLED 에 있는 nType 매개 변수.

예제

// 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