Skip to content

Latest commit

 

History

History
128 lines (73 loc) · 5.12 KB

mfc-macros-and-globals.md

File metadata and controls

128 lines (73 loc) · 5.12 KB
title ms.custom ms.date ms.reviewer ms.suite ms.technology ms.tgt_pltfrm ms.topic f1_keywords dev_langs helpviewer_keywords ms.assetid caps.latest.revision author ms.author manager
MFC Macros and Globals | Microsoft Docs
11/04/2016
cpp-windows
article
vc.mfc.macros
C++
MFC, global functions and variables
MFC, macros
global functions, MFC
macros, MFC
global functions [MFC]
global variables, MFC
Afx naming convention
macros
add4e33f-0e62-4d27-be14-896cb8675d22
18
mikeblome
mblome
ghogen

MFC Macros and Globals

The Microsoft Foundation Class Library can be divided into two major sections: (1) the MFC classes and (2) macros and globals. If a function or variable is not a member of a class, it is a global function or variable.

The MFC library and the Active Template Library (ATL) share string conversion macros. For more information, see String Conversion Macros in the ATL documentation.

The MFC macros and globals offer functionality in the following categories.

General MFC

Database

Internet

DHTML / DHTML Event Maps

OLE

In addition, MFC provides a function called AfxEnableControlContainer that enables any OLE container developed with MFC 4.0 to fully support embedded OLE controls.

OLE Controls

The first part of this section briefly discusses each of the previous categories and lists the globals and macros in the category, together with brief descriptions of functionality. Following this are descriptions of the global functions, global variables, and macros in the MFC library.

Note

Many global functions start with the prefix "Afx", but some, for example, the dialog data exchange (DDX) functions and many of the database functions, do not follow this convention. All global variables start with "afx" as a prefix. Macros do not start with any particular prefix, but they are written in uppercase letters.

See Also

Class Overview