Share via


CMFCPropertySheet::AddPage

Adds a page to the property sheet.

void AddPage(
   CPropertyPage* pPage 
);

Parameters

  • [in] pPage
    Pointer to a page object. This parameter cannot be NULL.

Remarks

This method adds the specified property page as the rightmost tab in the property sheet. Therefore, use this method to add pages in left-to-right order.

If the property sheet is in the style of Microsoft Outlook, the framework displays a list of navigation buttons at the left of the property sheet. After this method adds a property page, it adds a corresponding button to the list. To display a property page, click its corresponding button. For more information about styles of property sheets, see CMFCPropertySheet::SetLook.

Requirements

Header: afxpropertysheet.h

See Also

Concepts

MFC Hierarchy Chart

Reference

CMFCPropertySheet Class

CPropertySheet::AddPage

CMFCPropertySheet::SetLook