CPropertySheet::CPropertySheet

CPropertySheet( );

CPropertySheet(UINTnIDCaption**,CWnd*pParentWnd=NULL,UINTiSelectPage=0);**

CPropertySheet(LPCTSTRpszCaption**,CWnd*pParentWnd=NULL,UINTiSelectPage=0);**

Parameters

nIDCaption

ID of the caption to be used for the property sheet.

pParentWnd

Points to the parent window of the property sheet. If NULL, the parent window will be the main window of the application.

iSelectPage

The index of the page that will initially be on top. Default is the first page added to the sheet.

pszCaption

Points to a string containing the caption to be used for the property sheet. Cannot be NULL.

Remarks

Use this member function to construct a CPropertySheet object. To display the property sheet, call DoModal or Create. The string contained in the first parameter will be placed in the caption bar for the property sheet.

If you have multiple parameters (for example, if you are using an array), use Construct instead of CPropertySheet.

Example

// Declare a CPropertySheet object titled "Simple PropertySheet".
CPropertySheet dlgPropertySheet("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 dlgPropertySheet(IDS_PROPERTYSHEET_TITLE, this, 1);

CPropertySheet OverviewClass MembersHierarchy Chart

See Also   CPropertySheet::Construct, CPropertySheet::DoModal, CPropertySheet::Create, CPropertyPage