CPropertySheetEx::Construct

void Construct( UINT nIDCaption, CWnd* pParentWnd = NULL, UINT iSelectPage = 0, HBITMAP hbmWatermark = NULL, HPALETTE hpalWatermark = NULL, HBITMAP hbmHeader = NULL );

void Construct( LPCTSTR pszCaption, CWnd* pParentWnd = NULL, UINT iSelectPage = 0, HBITMAP hbmWatermark = NULL, HPALETTE hpalWatermark = NULL, HBITMAP hbmHeader = NULL );

Parameters

nIDCaption

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

pParentWnd

Pointer 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.

hbmWatermark

Handle to the watermark bitmap of the property page.

hpalWatermark

Handle to the palette of the watermark bitmap and/or header bitmap.

hbmHeader

Handle to the header bitmap of the property page.

pszCaption

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

Remarks

Call this member function to construct a CPropertySheetEx object. For more information, see CPropertySheet::Construct.

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.

The watermark and/or header images are automatically displayed if valid values are passed in the call to Construct.

CPropertySheetEx OverviewClass MembersHierarchy Chart

See Also   CPropertySheetEx::CPropertySheetEx, Graphic Objects in Visual C++ Programmer’s Guide