Skip to content

Commit 719b3cf

Browse files
authored
Merge pull request #3327 from TylerMSFT/twhitney-github2644
address gihub #2644
2 parents 7de891e + 129860c commit 719b3cf

File tree

1 file changed

+14
-16
lines changed

1 file changed

+14
-16
lines changed
Lines changed: 14 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,29 @@
11
---
2-
title: "MFC Application Architecture Classes"
3-
ms.date: "11/04/2016"
2+
title: "Microsoft Foundation Classes (MFC) application architecture classes"
3+
description: "An overview of the Microsoft Foundation Class (MFC) library application architecture classes."
4+
ms.date: "12/08/2020"
45
helpviewer_keywords: ["MFC, classes", "MFC, application development", "classes [MFC], MFC", "application architecture classes [MFC]"]
5-
ms.assetid: 71b2de54-b44d-407e-9c71-9baf954e18d9
66
---
7-
# MFC Application Architecture Classes
7+
# MFC application architecture classes
88

9-
Classes in this category contribute to the architecture of a framework application. They supply functionality common to most applications. You fill in the framework to add application-specific functionality. Typically, you do so by deriving new classes from the architecture classes, and then adding new members or overriding existing member functions.
9+
The Microsoft Foundation Class library (MFC) classes in this category contribute to the architecture of an MFC application. They supply functionality common to most applications. You fill in the framework to add application-specific functionality. Typically, you do so by deriving new classes from the architecture classes, and then adding new members or overriding existing member functions.
1010

11-
[Application wizards](reference/mfc-application-wizard.md) generate several types of applications, all of which use the application framework in differing ways. SDI (single document interface) and MDI (multiple document interface) applications make full use of a part of the framework called document/view architecture. Other types of applications, such as dialog-based applications, form-based applications, and DLLs, use only some of document/view architecture features.
11+
[Application wizards](reference/mfc-application-wizard.md) generate several types of applications, all of which use the application framework in differing ways. SDI (single document interface) and MDI (multiple document interface) applications make full use of the document/view part of the framework. Other types of applications, such as dialog-based applications, form-based applications, and DLLs, use only some of document/view architecture features.
1212

1313
Document/view applications contain one or more sets of documents, views, and frame windows. A document-template object associates the classes for each document/view/frame set.
1414

15-
Although you do not have to use document/view architecture in your MFC application, there are a number of advantages to doing so. The MFC OLE container and server support is based on document/view architecture, as is support for printing and print preview.
15+
You don't have to use document/view architecture in your MFC application, but there are a number of advantages to doing so. The MFC OLE container and server support is based on document/view architecture, as is support for printing and print preview.
1616

17-
All MFC applications have at least two objects: an application object derived from [CWinApp](reference/cwinapp-class.md), and some sort of main window object, derived (often indirectly) from [CWnd](reference/cwnd-class.md). (Most often, the main window is derived from [CFrameWnd](reference/cframewnd-class.md), [CMDIFrameWnd](reference/cmdiframewnd-class.md), or [CDialog](reference/cdialog-class.md), all of which are derived from `CWnd`.)
17+
All MFC applications have at least two objects: an application object derived from [`CWinApp`](reference/cwinapp-class.md), and some sort of main window object, derived (often indirectly) from [`CWnd`](reference/cwnd-class.md). (Most often, the main window is derived from [`CFrameWnd`](reference/cframewnd-class.md), [`CMDIFrameWnd`](reference/cmdiframewnd-class.md), or [`CDialog`](reference/cdialog-class.md), all of which are derived from `CWnd`.)
1818

19-
Applications that use document/view architecture contain additional objects. The principal objects are:
19+
Applications that use document/view architecture contain additional objects. The main objects are:
2020

21-
- An application object derived from class [CWinApp](reference/cwinapp-class.md), as mentioned before.
21+
- An application object derived from class [`CWinApp`](reference/cwinapp-class.md), as mentioned before.
22+
- One or more document class objects derived from class [`CDocument`](reference/cdocument-class.md). Document class objects are responsible for the internal representation of the data that is manipulated in the view. They may be associated with a data file.
23+
- One or more view objects derived from class [`CView`](reference/cview-class.md). Each view is a window that is attached to a document and associated with a frame window. Views display and manipulate the data contained in a document class object.
2224

23-
- One or more document class objects derived from class [CDocument](reference/cdocument-class.md). Document class objects are responsible for the internal representation of the data manipulated in the view. They may be associated with a data file.
24-
25-
- One or more view objects derived from class [CView](reference/cview-class.md). Each view is a window that is attached to a document and associated with a frame window. Views display and manipulate the data contained in a document class object.
26-
27-
Document/view applications also contain frame windows (derived from [CFrameWnd](reference/cframewnd-class.md)) and document templates (derived from [CDocTemplate](reference/cdoctemplate-class.md)).
25+
Document/view applications also contain frame windows (derived from [`CFrameWnd`](reference/cframewnd-class.md)) and document templates (derived from [`CDocTemplate`](reference/cdoctemplate-class.md)).
2826

2927
## See also
3028

31-
[Class Overview](class-library-overview.md)
29+
[Class Overview](class-library-overview.md)

0 commit comments

Comments
 (0)