Skip to content

Latest commit

 

History

History
105 lines (78 loc) · 4.68 KB

File metadata and controls

105 lines (78 loc) · 4.68 KB
title Frame Windows | Microsoft Docs
ms.custom
ms.date 11/04/2016
ms.reviewer
ms.suite
ms.technology
cpp-windows
ms.tgt_pltfrm
ms.topic article
dev_langs
C++
helpviewer_keywords
document frame windows
windows [C++], MDI
window classes [C++], frame
single document interface (SDI)
single document interface (SDI), frame windows
views [C++], and frame windows
CFrameWnd class, frame windows
frame windows [C++]
frame windows [C++], about frame widows
MFC [C++], frame windows
MDI [C++], frame windows
splitter windows, and frame windows
ms.assetid 40677339-8135-4f5e-aba6-3fced3078077
caps.latest.revision 11
author mikeblome
ms.author mblome
manager ghogen
translation.priority.ht
cs-cz
de-de
es-es
fr-fr
it-it
ja-jp
ko-kr
pl-pl
pt-br
ru-ru
tr-tr
zh-cn
zh-tw

Frame Windows

When an application runs under Windows, the user interacts with documents displayed in frame windows. A document frame window has two major components: the frame and the contents that it frames. A document frame window can be a single document interface (SDI) frame window or a multiple document interface (MDI) child window. Windows manages most of the user's interaction with the frame window: moving and resizing the window, closing it, and minimizing and maximizing it. You manage the contents inside the frame.

Frame Windows and Views

The MFC framework uses frame windows to contain views. The two components — frame and contents — are represented and managed by two different classes in MFC. A frame-window class manages the frame, and a view class manages the contents. The view window is a child of the frame window. Drawing and other user interaction with the document take place in the view's client area, not the frame window's client area. The frame window provides a visible frame around a view, complete with a caption bar and standard window controls such as a control menu, buttons to minimize and maximize the window, and controls for resizing the window. The "contents" consist of the window's client area, which is fully occupied by a child window — the view. The following figure shows the relationship between a frame window and a view.

Frame window view
Frame Window and View

Frame Windows and Splitter Windows

Another common arrangement is for the frame window to frame multiple views, usually using a splitter window. In a splitter window, the frame window's client area is occupied by a splitter window, which in turn has multiple child windows, called panes, which are views.

What do you want to know more about

General Frame Window Topics

Topics on Using Frame Windows

Topics on Special Frame Window Capabilities

Topics on Other Kinds of Windows

See Also

Windows