Compartir a través de


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.

Syntax

class CMFCPropertyPage : public CPropertyPage  

Members

Public Constructors

Name Description
CMFCPropertyPage::CMFCPropertyPage Constructs a CMFCPropertyPage object.
CMFCPropertyPage::~CMFCPropertyPage Destructor.

Public Methods

Name Description
CMFCPropertyPage::CreateObject Used by the framework to create a dynamic instance of this class type.
CMFCPropertyPage::GetThisClass Used by the framework to obtain a pointer to the CRuntimeClass object that is associated with this class type.
CMFCPropertyPage::OnSetActive This member function is called by the framework when the page is chosen by the user and becomes the active page. (Overrides CPropertyPage::OnSetActive.)
CMFCPropertyPage::PreTranslateMessage Translates 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.)

Remarks

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.

Inheritance Hierarchy

CObject

CCmdTarget

CWnd

CDialog

CPropertyPage

CMFCPropertyPage

Requirements

Header: afxpropertypage.h

CMFCPropertyPage::CMFCPropertyPage

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.

See Also

Hierarchy Chart
Classes
CMFCPropertySheet Class