IPropertySheetCallback::AddPage

[This is preliminary documentation and subject to change.]

Allows a snap-in to add a page to a property sheet.

HRESULT AddPage(
  HPROPSHEETPAGE hPage  // Handle of the page to be added
);
 

Parameter

hPage
[in] Specifies the handle of the page to be added.

Return Values

S_OK
The page was successfully added.
S_FALSE
There are too many pages on this sheet. The maximum is 255.
E_UNEXPECTED
An unexpected error occurred.
E_POINTER
The parameter is NULL.

Remarks

Pages are added to the sheet in the order they are presented. The primary snap-ins pages are always added first.

Notes to Callers

The hPage parameter is a handle to a PROPSHEETPAGE-structure created by the Win32 function CreatePropertySheetPage, which is documented in the Platform SDK.

See Also

IPropertySheetCallback