Important: |
---|
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist. |
This structure defines the frame and pages of a property sheet.
typedef struct _PROPSHEETHEADER { DWORD dwSize ; DWORD dwFlags ; HWND hwndParent ; HINSTANCE hInstance ; union { HICON hIcon ; LPCWSTR pszIcon ; }; LPCWSTR pszCaption ; UINT nPages ; union { UINT nStartPage ; LPCWSTR pStartPage ; }; union { LPCPROPSHEETPAGE ppsp ; HPROPSHEETPAGE FAR *phpage ; }; PFNPROPSHEETCALLBACK pfnCallback ;} PROPSHEETHEADER, FAR *LPPROPSHEETHEADER; typedef const PROPSHEETHEADER FAR *LPCPROPSHEETHEADER;
Members
Value | Description |
---|---|
PSH_DEFAULT | Uses the default meaning for all structure members. |
PSH_HASHELP | Displays the property sheet Helpbutton. The Helpbutton is enabled only when the PSP_HASHELP flag is set in the PROPSHEETPAGEstructure for the active page. If any of the initial property sheet pages set the PSP_HASHELP flag, the Helpbutton is automatically displayed regardless of the PSH_HASHELP flag. However, PSH_HASHELP is useful when none of the initial pages set PSP_HASHELP, but pages added later might. |
PSH_HEADER | Version 4.71. Indicates that a header bitmap will be used. If this value does not include PSH_USEHBMHEADER, the header bitmap is obtained from pszbmHeader. If this value includes PSH_USEHBMHEADER, the header bitmap is obtained from hbmHeader. This flag is ignored if PSH_WIZARD97 is not included. |
PSH_MODELESS | Causes the PropertySheetfunction to create the property sheet as a modeless dialog instead of as a modal dialog. When this flag is set, PropertySheetreturns immediately after the dialog is created, and the return value from PropertySheetis the window handle to the property sheet dialog. |
PSH_NOAPPLYNOW | Removes the Apply Nowbutton. |
PSH_PROPSHEETPAGE | Uses ppspand ignores phpagewhen creating the pages for the property sheet. |
PSH_PROPTITLE | Displays the string "Properties for", followed by the string specified by pszCaption, in the title bar of the property sheet. |
PSH_RTLREADING | Displays the title of the property sheet dialog using right-to-left reading order on Hebrew or Arabic systems. |
PSH_STRETCHWATERMARK | Version 4.71. Stretches the bitmap to fit the background of the property sheet instead of tiling the watermark and/or header bitmap. This flag is ignored if PSH_WIZARD97 and PSH_WATERMARK or PSH_HEADER are not included. |
PSH_USECALLBACK | Calls the function specified by pfnCallbackwhen initializing the property sheet defined by this structure. |
PSH_USEHBMHEADER | Version 4.71. Obtains the header bitmap from hbmHeaderinstead of pszbmHeader. This flag is ignored if PSH_WIZARD97 and PSH_HEADER are not included. |
PSH_USEHBMWATERMARK | Version 4.71. Obtains the watermark bitmap from hbmWatermarkinstead of pszbmWatermark. This flag is ignored if PSH_WIZARD97 and PSH_WATERMARK are not included. |
PSH_USEHICON | Not supported. |
PSH_USEHPLWATERMARK | Version 4.71. Obtains the HPALETTE for drawing the watermark bitmap and/or header bitmap from hplWatermarkinstead of using the default palette. This flag is ignored if PSH_WIZARD97 and PSH_WATERMARK or PSH_HEADER are not included. |
PSH_USEICONID | Not supported. |
PSH_USEPAGELANG | Version 4.71. The language for the property sheet will be taken from the first page's resource. |
PSH_USEPSTARTPAGE | Uses pStartPageand ignores nStartPagewhen displaying the initial page of the property sheet. |
PSH_WATERMARK | Version 4.71. Specifies that a watermark bitmap will be used. If this value does not include PSH_USEHBMWATERMARK, the watermark bitmap is obtained from pszbmWatermark. If this value includes PSH_USEHBMWATERMARK, the header bitmap is obtained from hbmWatermark. This flag is ignored if PSH_WIZARD97 is not included. |
PSH_WIZARD | Creates a wizard property sheet. |
PSH_WIZARD97 | Creates a wizard property sheet that allows a header and/or watermark bitmap to be displayed in the background. This and all Wizard 97-associated flags are not currently implemented. |
PSH_WIZARDCONTEXTHELP | Adds a system menu to the wizard property sheet. This flag is ignored if PSH_WIZARD or PSH_WIZARD97 is not included. |
PSH_WIZARDHASFINISH | Always displays the Finishbutton on the wizard. This flag is ignored if PSH_WIZARD or PSH_WIZARD97 is not included. |
Requirements
Runs on | Versions | Defined in | Include | Link to |
---|---|---|---|---|
Windows CE OS | 1.0 and later | Prsht.h |
Note This API is part of the complete Windows CE OS package as provided by Microsoft. The functionality of a particular platform is determined by the original equipment manufacturer (OEM) and some devices may not support this API.
See Also
CreatePropertySheetPage, PropertySheet, PropSheetProc, PROPSHEETPAGE