类库概述Class Library Overview

此概述分类并描述 Microsoft 基础类库 (MFC) 版本9.0 中的类。This overview categorizes and describes the classes in the Microsoft Foundation Class Library (MFC) version 9.0. MFC 中的类共同构成应用程序框架-应用程序框架是为 Windows API 编写的应用程序框架。The classes in MFC, taken together, constitute an application framework — the framework of an application written for the Windows API. 编程任务是在特定于应用程序的代码中进行填充。Your programming task is to fill in the code that is specific to your application.

库的类在以下类别中提供:The library's classes are presented here in the following categories:

" 常规类设计 " 一节介绍了 MFC 库的设计方式。The section General Class Design Philosophy explains how the MFC Library was designed.

有关框架的概述,请参阅 使用类编写适用于 Windows 的应用程序For an overview of the framework, see Using the Classes to Write Applications for Windows. 上面列出的某些类是通用类,可在框架外使用,并提供有用的抽象,如集合、异常、文件和字符串。Some of the classes listed above are general-purpose classes that can be used outside of the framework and provide useful abstractions such as collections, exceptions, files, and strings.

若要查看类的继承,请使用 类层次结构图To see the inheritance of a class, use the Class Hierarchy Chart.

除了本概述中列出的类之外,MFC 库还包含许多全局函数、全局变量和宏。In addition to the classes listed in this overview, the MFC Library contains a number of global functions, global variables, and macros. 主题 Mfc Macros 和 Globals中提供了这些方法的概述和详细列表,它们遵循对 mfc 类的字母引用。There is an overview and detailed listing of these in the topic MFC Macros and Globals, which follows the alphabetical reference to the MFC classes.

请参阅See also

MFC 桌面应用程序MFC Desktop Applications