- class CMyPropertyPage11 : public CPropertyPage
This says class CMyPropertyPage11 is a derived class of CPropertyPage
- CMyPropertyPage11::CMyPropertyPage11() : CPropertyPage(CMyPropertyPage11::IDD)
-
This says the default constructor of CMyPropertyPage11() calls the base class constructor of CPropertyPage using CMyPropertyPage11::IDD as an argument.
The initializer list (:) of CMyPropertyPage11() guarantees that CPropertyPage::CPropertyPage(CMyPropertyPage11::ID D) is called before the CMyPropertyPage11() constructor executes.
It is important that all base class data members are initialized before attempting to initialize derived class members in the event the derived class requires information from the base class in order to proceed.
Were this not done, when you create a CMyPropertyPage11 object, the CPropertyPage::CPropertyPage() constructor would be called instead. The base portion of your CMyPropertyPage11 object would now be missing the CMyPropertyPage11::IDD.