CreatePropertySheetPageW function (prsht.h)

Creates a new page for a property sheet.

Syntax

HPROPSHEETPAGE CreatePropertySheetPageW(
  LPCPROPSHEETPAGEW constPropSheetPagePointer
);

Parameters

constPropSheetPagePointer

Type: LPCPROPSHEETPAGE

Pointer to a PROPSHEETPAGE structure that defines a page to be included in a property sheet.

Return value

Type: HPROPSHEETPAGE

Returns the handle to the new property page if successful, or NULL otherwise.

Remarks

Note  Before common controls version 7.0, this function did not support visual styles.
 
An application uses the PropertySheet function to create a property sheet that includes the new page. If you are not using the Aero wizard style (PSH_AEROWIZARD), the application can use the PSM_ADDPAGE message to add the new page to an existing property sheet.

Windows 95: The system can support a maximum of 16,364 window handles.

Note

The prsht.h header defines CreatePropertySheetPage as an alias that automatically selects the ANSI or Unicode version of this function based on the definition of the UNICODE preprocessor constant. Mixing usage of the encoding-neutral alias with code that is not encoding-neutral can lead to mismatches that result in compilation or runtime errors. For more information, see Conventions for Function Prototypes.

Requirements

Requirement Value
Minimum supported client Windows Vista [desktop apps only]
Minimum supported server Windows Server 2003 [desktop apps only]
Target Platform Windows
Header prsht.h
Library Comctl32.lib
DLL Comctl32.dll
API set ext-ms-win-shell-comctl32-window-l1-1-0 (introduced in Windows 10, version 10.0.14393)