MFC Macros and Globals

來源:互聯網
上載者:User

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. See String Conversion Macros in the ATL documentation for a discussion of these macros.

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

General MFC

  • Data types
  • Type casting of MFC class objects
  • Run-time object model services
  • Diagnostic services
  • Exception processing
  • CString formatting and message-box display
  • Message maps
  • Application information and management
  • Standard command and window IDs
  • Collection class helpers
  • Gray and dithered bitmap functions

Database

  • Record Field Exchange (RFX) functions and Bulk Record Field Exchange (bulk RFX) functions for the MFC ODBC classes
  • Record field exchange (DFX) functions for the MFC DAO classes
  • Dialog data exchange (DDX) functions for CRecordView and CDaoRecordView (MFC ODBC and DAO classes)
  • Dialog data exchange (DDX) functions for OLE controls
  • Macros and globals to aid in calling Open Database Connectivity (ODBC) API functions directly
  • DAO database engine initialization and termination

Internet

  • Internet Server API (ISAPI) parse maps
  • Internet URL parsing globals
  • Internet Server API (ISAPI) diagnostic macros

DHTML Event Maps

  • DHTML event maps
  • Multipage DHTML and URL event maps

OLE

  • OLE initialization
  • Application control
  • Dispatch maps

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

  • Variant parameter type constants
  • Type library access
  • Property pages
  • Event maps
  • Event sink maps
  • Connection maps
  • Registering OLE controls
  • Class factories and licensing
  • Persistence of OLE controls

The first part of this section briefly discusses each of the previous categories and lists each global and macro in the category, along with a brief description of what it does. Following this alphabetically are complete descriptions of the global functions, global variables, and macros in the MFC library.

To find more information on MFC Macros and Globals, see MFC Macros and Globals.

Note   Many global functions start with the prefix "Afx", but some, such as the dialog data exchange (DDX) functions and many of the database functions, deviate from 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.

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.