Microsoft Foundation Classes (mfc.hlp) (
Table of Contents;
Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software,
purely for historical purposes.
If you're looking for up-to-date documentation, particularly for programming,
you should not rely on the information found here, as it will be woefully
out of date.
class CMDIFrameWnd
◄CWnd► ◄Up► ◄Contents► ◄Index► ◄Back►
──Microsoft Foundation Classes──────────────────────────────────────────────
Description
The CMDIFrameWnd class provides the functionality of a Windows multiple
document interface (MDI) frame window, and also provides members for
managing the window.
To create a useful MDI frame window for your application, derive a class
from CMDIFrameWnd. Add member variables to the derived class to store
data specific to your application. Implement message-handler member
functions and a message map in the derived class to specify what happens
when messages are directed to the window.
You create an MDI frame window in two steps. First, call the constructor
CMDIFrameWnd to construct the CMDIFrameWnd object, then call the
◄Create► member function to create the MDI frame window and attach it to
the CMDIFrameWnd object.
Construction can be a one-step process in a derived class. Write a
constructor for the derived class and call Create from within the
constructor.
When the user terminates your MDI frame window, destroy the CMDIFrameWnd
object, or call the DestroyWindow member function, which CMDIFrameWnd
inherits from class CWnd, to remove the CMDIFrameWnd and destroy its
data structures. If you allocate any memory in the CMDIFrameWnd object,
override the CMDIFrameWnd destructor to dispose of the allocations.
See Also
◄CWnd►, ◄CFrameWnd►, ◄CMDIChildWnd►
Public Members
Construction/Destruction
◄CMDIFrameWnd► Constructs a CMDIFrameWnd.
Initialization
◄Create► Creates and attaches the Windows MDI frame window
associated with the CMDIFrameWnd object.
◄CreateClient► Fills out a CLIENTCREATESTRUCT and creates a Windows
MDICLIENT window for this CMDIFrameWnd. Called by the
OnCreate member function.
Operations
◄MDIActivate► Activates a different MDI child window.
◄MDICascade► Arranges all child windows in a cascade format.
◄MDIGetActive► Retrieves the current active MDI child window, along
with a flag indicating whether the child is maximized
or not.
◄MDIIconArrange► Arranges all minimized document child windows.
◄MDIMaximize► Maximizes an MDI child window.
◄MDINext► Activates the child window immediately behind the
currently active child window and places the
currently active child window behind all other child
windows.
◄MDIRestore► Restores an MDI child window from maximized or
minimized size.
◄MDISetMenu► Replaces the menu of an MDI frame window, the Window
pop-up menu, or both.
◄MDITile► Arranges all child windows in a tiled format.
◄GetChildFrame► Returns the active MDI child.
Data Members
◄m_hWndMDIClient► The HWND for the MDICLIENT window.
Windows 3.1 Functions
◄MDITile► Arranges all the child windows of an MDI client window in
a tiled format.
◄MDICascade► Arranges all the child windows of an MDI client window in
a cascaded format.
-♦-