CMFCPropertyPage Class

 

The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com.

The latest version of this topic can be found at CMFCPropertyPage Class.

The CMFCPropertyPage class supports the display of pop-up menus on a property page.

class CMFCPropertyPage : public CPropertyPage  

Public Constructors

NameDescription
CMFCPropertyPage::CMFCPropertyPageConstructs a CMFCPropertyPage object.
CMFCPropertyPage::~CMFCPropertyPageDestructor.

Public Methods

NameDescription
CMFCPropertyPage::CreateObjectUsed by the framework to create a dynamic instance of this class type.
CMFCPropertyPage::GetThisClassUsed by the framework to obtain a pointer to the CRuntimeClass object that is associated with this class type.
CMFCPropertyPage::OnSetActiveThis member function is called by the framework when the page is chosen by the user and becomes the active page. (Overrides CPropertyPage::OnSetActive.)
CMFCPropertyPage::PreTranslateMessageTranslates window messages before they are dispatched to the TranslateMessage and DispatchMessage Windows functions. For more information and method syntax, see CWnd::PreTranslateMessage. (Overrides CPropertyPage::PreTranslateMessage.)

The CMFCPropertyPage class represents individual pages of a property sheet, otherwise known as a tab dialog box.

Use the CMFCPropertyPage class together with the CMFCPropertySheet class. To use menus on a property page, replace all occurrences of the CPropertyPage class with the CMFCPropertyPage class.

CObject

CCmdTarget

CWnd

CDialog

CPropertyPage

CMFCPropertyPage

Header: afxpropertypage.h

Constructs a CMFCPropertyPage object.

CMFCPropertyPage(
    UINT nIDTemplate,  
    UINT nIDCaption=0);

 
CMFCPropertyPage(
    LPCTSTR lpszTemplateName,  
    UINT nIDCaption=0);

Parameters

nIDTemplate
Resource ID of the template for this page.

nIDCaption
Resource ID of the label to put in the tab for this page. If 0, the name is obtained from the dialog box template for this page. The default value is 0.

lpszTemplateName
Points to the name of the template for this page. Cannot be NULL.

Return Value

Remarks

For more information about the constructor parameters, see CPropertyPage::CPropertyPage.

Hierarchy Chart
Classes
CMFCPropertySheet Class

Show: