CMDIFrame Class

class CMDIFrame: public CWindow

MDI frame window class

CMDIFrame includes the following member functions  MDIGetActive,  MDIActivate,  MDINext,  MDIMaximize,  MDIRestore,  MDIDestroy,  MDICascade,  MDITile,  MDIIconArrange,  MDISetMenu, and  MDIRefreshMenu

Defined in: MdiWnd.h

Class Template Arguments

_MDIClient = CMDIClientWindow>

Type of client area

Comments

Class Members

CMDIFrame(HWND hwndFrame = NULL, HWND hwndClient = NULL) : CWindow(hwndFrame), m_wndClient(hwndClient) (hwndClient)

Constructor

CMDIFrame& operator=(HWND hwnd)

Assignment operator

HWND  MDIGetActive(BOOL* lpbMaximized = NULL)

Get the active window

void  MDIActivate(HWND hWndChildToActivate)

Activate and MDI child

void  MDINext(HWND hWndChild, bool bPrevious = false)

Assign the next MDI child

void  MDIMaximize(HWND hWndChildToMaximize)

Maximize and MDI window .

void  MDIRestore(HWND hWndChildToRestore)

Restore an MDI Window.

void  MDIDestroy(HWND hWndChildToDestroy)

Destroy an MDI Window

BOOL  MDICascade(UINT uFlags = 0)

Cascade the windows

BOOL  MDITile(UINT uFlags = MDITILE_HORIZONTAL)

Tile the windows

void  MDIIconArrange()

Arrange the icons

HMENU  MDISetMenu(HMENU hMenuFrame, HMENU hMenuWindow)

Set the menu

HMENU  MDIRefreshMenu()

Refresh the menu