다음을 통해 공유


CPropertyPage::CPropertyPage

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) 
);

매개 변수

  • nIDTemplate
    이 페이지에 사용할 서식 파일의 ID입니다.

  • nIDCaption
    이 페이지의 탭에 넣을 이름 ID입니다. 0 인 경우,이 페이지에 대 한 대화 상자 템플릿에서 이름을 이동 합니다.

  • dwSize

  • lpszTemplateName
    이 페이지에 대 한 서식 파일의 이름을 포함 하는 문자열을 가리킵니다. 수 없습니다 NULL.

  • nIDHeaderTitle
    속성 페이지 머리글의 제목 위치에 넣을 ID 이름입니다.

  • nIDHeaderSubTitle
    속성 페이지 헤더의 자막 위치에 넣을 ID 이름입니다.

설명

다음 조건이 모두 충족 된 후 개체가 표시 됩니다.

  • 시트를 사용 하는 속성 페이지 추가 된 CPropertySheet::AddPage.

  • 속성 시트의 DoModal 또는 만들기 함수를 호출 했습니다.

  • 사용자가 선택한 (탭)이이 페이지.

여러 매개 변수 (예를 들어, 배열을 사용 하는 경우)를 사용할 경우 사용 CPropertySheet::Construct 대신 CPropertyPage.

예제

// 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);

요구 사항

헤더: afxdlgs.h

참고 항목

참조

CPropertyPage 클래스

계층 구조 차트

CPropertySheet::Create

CPropertySheet::DoModal

CPropertySheet::AddPage

CPropertyPage::Construct