Share via


CPropertyPage::CPropertyPage

Crea un objeto CPropertyPage.

CPropertyPage( ); 
explicit CPropertyPage(
   UINT nIDTemplate,
   UINT nIDCaption = 0,
   DWORD dwSize = sizeof(PROPSHEETPAGE)
);
explicit CPropertyPage(
   LPCTSTR lpszTemplateName,
   UINT nIDCaption = 0,
   DWORD dwSize = sizeof(PROPSHEETPAGE)
);
CPropertyPage(
   UINT nIDTemplate,
   UINT nIDCaption,
   UINT nIDHeaderTitle,
   UINT nIDHeaderSubTitle = 0,
   DWORD dwSize = sizeof(PROPSHEETPAGE)
);
CPropertyPage(
   LPCTSTR lpszTemplateName,
   UINT nIDCaption,
   UINT nIDHeaderTitle,
   UINT nIDHeaderSubTitle = 0,
   DWORD dwSize = sizeof(PROPSHEETPAGE)
);

Parámetros

  • nIDTemplate
    identificador de la plantilla utilizada para esta página.

  • nIDCaption
    Identificador de nombre se coloque en la pestaña para esta página.Si 0, el nombre es tomado de plantilla de cuadro de diálogo para esta página.

  • dwSize

  • lpszTemplateName
    Señala una cadena que contiene el nombre de la plantilla para esta página.no puede ser NULL.

  • nIDHeaderTitle
    Identificador de nombre se coloque en la ubicación del título del encabezado de página de propiedades.

  • nIDHeaderSubTitle
    Identificador de nombre se coloque en la ubicación del subtítulo de encabezado de página de propiedades.

Comentarios

Se muestra el objeto después de que se cumplan todas las condiciones siguientes:

  • La página se ha agregado a una hoja de propiedades mediante CPropertySheet:: AddPage.

  • Se ha llamado a la función de DoModal o de Crear de la hoja de propiedades.

  • el usuario tiene seleccionado (tabulado) esta página.

Si dispone de varios parámetros (por ejemplo, si utiliza una matriz), utilice CPropertySheet:: construcción en lugar de CPropertyPage.

Ejemplo

// Declare a CStylePage object, which is a CPropertyPage-derived class.
CStylePage stylePage;

// Declare a CPropertyPage object with IDD_SHAPE, the ID of the 
// template used for this page. 
CPropertyPage shapePage(IDD_SHAPE);

Requisitos

encabezado: afxdlgs.h

Vea también

Referencia

Clase de CPropertyPage

Gráfico de jerarquía

CPropertySheet::Create

CPropertySheet::DoModal

CPropertySheet::AddPage

CPropertyPage::Construct