AFX_
来源:互联网 发布:java static timer 编辑:程序博客网 时间:2024/05/06 13:50
ClassWizard Comment Delimiters
In order for ClassWizard to distinguish between code entered by the user and code created by ClassWizard, several types of special delimiters are used. These delimiters are formatted to appear as comments in the code. Therefore they are never compiled or modified by anything except ClassWizard.
The following is a list of the ClassWizard comment delimiters. For more information, see the topics in this section.
Comment Delimiters
AFX_DATA
Marks the beginning and end of member variable declarations in a header file (.H) used for dialog data exchange (DDX).
AFX_DATA_INIT
Marks the beginning and end of dialog data exchange (DDX) member variable initializations in a dialog class's constructor.
AFX_DATA_MAP
Marks the beginning and end of dialog data exchange (DDX) function calls in a dialog class's DoDataExchange member function.
AFX_DISP
Marks the beginning and end of OLE Automation declarations in a class's header (.H) file.
AFX_DISP_MAP
Marks the beginning and end of OLE Automation mapping in a class's implementation (.CPP) file.
AFX_EVENT
Marks the beginning and end of OLE event declarations in a class's header (.H) file.
AFX_EVENT_MAP
Marks the beginning and end of OLE events in a class's implementation (.CPP) file.
AFX_FIELD
Marks the beginning and end of member variable declarations in a header file (.H) used for database record field exchange (RFX).
AFX_FIELD_INIT
Marks the beginning and end of record field exchange (RFX) member variable initializations in a recordset class's constructor.
AFX_FIELD_MAP
Marks the beginning and end of record field exchange function calls in a recordset class's DoFieldExchange member function.
AFX_MSG
Marks the beginning and end of ClassWizard entries in a header file (.H) related to message maps.
AFX_MSG_MAP
Marks the beginning and end of message map entries in a class's message map (in the .CPP file).
AFX_VIRTUAL
Marks the beginning and end of virtual function override declarations in a class's header (.H) file.