Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here.


Sets the characteristics of a properties page. Similar to the Win32 PROPSHEETPAGE structure.

The following tables list the members exposed by the VSPROPSHEETPAGE type.

  Name Description
Public field dwFlags Flags that indicate which options to use when creating the property sheet page. 
Public field dwReserved Reserved for future use. 
Public field dwSize Specifies the size, in bytes, of the structure. The size includes any extra application-defined data at the end of the structure. 
Public field dwTemplateSize Use dwTemplateSize when PSP_DLGINDIRECT is specified in dwFlags. Specifies the size of the template specified in the pTemplate field. 
Public field HINSTANCE Handle to the instance from which to load a dialog template resource. 
Public field hwndDlg If you cannot pass a dialog template, set the HINSTANCE field to a null value and fill in this field instead. A page will then be created, and your hwnd will be attached to it. If you do this, do not use lParam for anything. 
Public field lParam When the page is created, a copy of the page's VSPROPSHEETPAGE structure is passed to the dialog box procedure with a WM_INITDIALOG message. The lParam member is provided to allow you to pass application-specific information to the dialog box procedure. It has no effect on the page itself. 
Public field pcRefParent Address of the reference count value. To use this member, you must set the PSP_USEREFPARENT flag in the dwFlags member. 
Public field pfnCallback Address of an application-defined callback function that is called when the page is created and when it is about to be destroyed. To use this member, you must set the PSP_USECALLBACK flag in the dwFlags member. 
Public field pfnDlgProc Address of the dialog box procedure for the page. Because the pages are created as modeless dialog boxes, the dialog box procedure must not call the EndDialog function. 
Public field pTemplate Dialog box template in memory to use to create the page. If the PSP_DLGINDIRECT flag in the dwFlags member is set, then pTemplate is used. 
Public field wTemplateId Used to specify the resource identifier of your dialog template in the module identified by the handle in the HINSTANCE field when PSP_DLGINDIRECT is not specified in dwFlags

(see also Protected Methods )
  Name Description
Public method Equals  Overloaded. (Inherited from ValueType.)
Public method GetHashCode  (Inherited from ValueType.)
Public method GetType  (Inherited from Object.)
Public method Static ReferenceEquals  (Inherited from Object.)
Public method ToString  (Inherited from ValueType.)

  Name Description
Protected method Finalize  (Inherited from Object.)
Protected method MemberwiseClone  (Inherited from Object.)

Community Additions

© 2015 Microsoft