Share via


CPSFUNC_ADD_PROPSHEETPAGE function

The CPSFUNC_ADD_PROPSHEETPAGE function code causes the ComPropSheet function to add the type of property sheet page that is described by a PROPSHEETPAGE structure (described in the Microsoft Windows SDK documentation).

Syntax

LONG_PTR ComPropSheet(
   HANDLE hComPropSheet,
   UINT   Function,
   LPARAM lParam1,
   LPARAM lParam2
);

Parameters

  • hComPropSheet
    Group parent handle.

  • Function
    Caller sets this function code parameter to CPSFUNC_ADD_PROPSHEETPAGE when it calls ComPropSheet to add the type of property sheet page described by a PROPSHEETPAGE structure.

    The ComPropSheet function calls the CreatePropertySheetPage function (described in the Windows SDK documentation), and passes the PROPSHEETPAGE structure's address to create the page.

  • lParam1
    Pointer to a PROPSHEETPAGE structure.

  • lParam2
    Not used, must be zero.

Return value

If the operation succeeds, ComPropSheet returns a CPSUI handle to the added page; otherwise, it returns NULL.

Requirements

Target platform

Desktop

Header

Compstui.h (include Compstui.h)

See also

CPSFUNC_ADD_HPROPSHEETPAGE

PROPSHEETPAGE

 

 

Send comments about this topic to Microsoft