MSDN Documentation

PSHPAGE Structure

The PSHPAGE structure is used by property sheets to manage pages.

Syntax

typedef struct tagPSHPAGE PSHPAGE;

Members

  • dwSize DWORD
    The size of the structure in bytes. This member must be initialized to sizeof(PSHPAGE).
  • dwFlags DWORD
    Flags that control the behavior of the page. Can be a combination of the following values:
    • PSHPAGE_DEFAULT: Default behavior.
    • PSHPAGE_HASHELP: Indicates that the page has a Help button.
    • PSHPAGE_HASAPPLY: Indicates that the page has an Apply button.
  • hInstance HINSTANCE
    A handle to the instance containing the dialog box template for the page.
  • pszTemplate LPCTSTR
    A pointer to a null-terminated string that specifies the name of the dialog box template for the page. Alternatively, this can be a resource identifier.
  • pfnCallback PFNPROPSHEETCALLBACK
    A pointer to the callback function for the page. This function is called by the property sheet manager to perform various actions related to the page.

Remarks

The PSHPAGE structure is typically used when creating a new property sheet page with the CreatePropertySheetPage function.

The pszTemplate member can either be a string representing the name of the dialog box template, or a MAKEINTRESOURCE macro that converts a resource identifier to the correct type.

The callback function specified by pfnCallback can receive various messages related to the property sheet page, such as PSC_INITIALIZE, PSC_VALIDATE, and PSC_DESTROY.

Requirements

Minimum supported client Windows 2000 Professional
Minimum supported server Windows 2000 Server
Header Prsht.h

See Also