| title |
An Example of the Comments | Microsoft Docs |
| ms.custom |
|
| ms.date |
11/04/2016 |
| ms.reviewer |
|
| ms.suite |
|
| ms.technology |
|
| ms.tgt_pltfrm |
|
| ms.topic |
article |
| dev_langs |
|
| helpviewer_keywords |
MFC source files, comment example |
code comments, MFC |
comments, MFC |
examples [MFC], code comments |
|
| ms.assetid |
eb8ddea2-74de-4d5c-93d6-596f7c5e58a7 |
| caps.latest.revision |
11 |
| author |
mikeblome |
| ms.author |
mblome |
| manager |
ghogen |
| translation.priority.ht |
cs-cz |
de-de |
es-es |
fr-fr |
it-it |
ja-jp |
ko-kr |
pl-pl |
pt-br |
ru-ru |
tr-tr |
zh-cn |
zh-tw |
|
An Example of the Comments
The following partial listing of class CChildFrame uses most of the standard comments that MFC employs in its classes to divide class members by the ways they are used:
[!code-cppNVC_MFCListView#5]
These comments consistently mark sections of the class declaration that contain similar kinds of class members. Keep in mind that these are MFC conventions, not set rules.
Using the MFC Source Files
// Implementation Comment
// Constructors Comment
// Attributes Comment
// Operations Comment
// Overridables Comment