다음을 통해 공유


CPropertySheet::CPropertySheet

CPropertySheet 개체를 생성합니다.

CPropertySheet( ); 
explicit CPropertySheet( 
   UINT nIDCaption, 
   CWnd* pParentWnd = NULL, 
   UINT iSelectPage = 0  
); 
explicit CPropertySheet( 
   LPCTSTR pszCaption, 
   CWnd* pParentWnd = NULL, 
   UINT iSelectPage = 0  
); 
CPropertySheet( 
   UINT nIDCaption, 
   CWnd* pParentWnd, 
   UINT iSelectPage, 
   HBITMAP hbmWatermark, 
   HPALETTE hpalWatermark = NULL, 
   HBITMAP hbmHeader = NULL  
); 
CPropertySheet( 
   LPCTSTR pszCaption, 
   CWnd* pParentWnd, 
   UINT iSelectPage, 
   HBITMAP hbmWatermark, 
   HPALETTE hpalWatermark = NULL, 
   HBITMAP hbmHeader = NULL  
);

매개 변수

  • nIDCaption
    ID 캡션의 속성 시트를 사용 합니다.

  • pParentWnd
    속성 시트의 부모 창 가리킵니다. 경우 NULL, 부모 창에 응용 프로그램의 주 창이 됩니다.

  • iSelectPage
    처음에 위에 표시 될 페이지의 인덱스입니다. 기본 시트에 추가할 첫 번째 페이지입니다.

  • pszCaption
    속성 시트를 사용 하는 캡션이 포함 된 문자열을 가리킵니다. 수 없습니다 NULL.

  • hbmWatermark
    속성 시트의 배경 비트맵 핸들입니다.

  • hpalWatermark
    워터 마크 비트맵 및 비트맵 헤더의 색상표 핸들입니다.

  • hbmHeader
    비트맵 속성 페이지의 머리글에 대 한 핸들입니다.

설명

속성 시트를 표시 하려면 DoModal 또는 만들기. 첫 번째 매개 변수를 포함 하는 문자열 속성 시트에 대 한 캡션 표시줄에 배치 됩니다.

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

세 번째 또는 네 번째 프로토타입을 사용 하는 경우 머리글 및/또는 워터 마크 이미지를 자동으로 표시할 수 있습니다 CPropertySheet, 위, 및 전달에 대 한 유효한 값은 hbmWatermark, hpalWatermark, 및/또는 hbmHeader 매개 변수.

예제

// Declare a CPropertySheet object titled "Simple PropertySheet".
CPropertySheet dlgPropertySheet1(_T("Simple PropertySheet"));

// Declare a CPropertySheet object whose title is specified in the 
// IDS_PROPERTYSHEET_TITLE string resource, and the second page is 
// initially on top.  
CPropertySheet dlgPropertySheet2(IDS_PROPERTYSHEET_TITLE, this, 1);

요구 사항

헤더: afxdlgs.h

참고 항목

참조

CPropertySheet 클래스

계층 구조 차트

CPropertySheet::Construct

CPropertySheet::DoModal

CPropertySheet::Create

CPropertyPage::CPropertyPage