|
Overview |
|
|
|
Group |
|
|
|
Quick Info
Windows NT
| Yes
| Win95
| Yes
| Win32s
| Yes
| Import Library
| -
| Header File
| prsht.h
| Unicode
| WinNT
| Platform Notes
| None
|
|
|
PROPSHEETHEADER
The PROPSHEETHEADER structure defines the frame and pages of a property sheet.
typedef struct _PROPSHEETHEADER { // psh
DWORD dwSize;
DWORD dwFlags;
HWND hwndParent;
HINSTANCE hInstance;
union {
HICON hIcon;
LPCTSTR pszIcon;
};
LPCTSTR pszCaption;
UINT nPages
union {
UINT nStartPage
LPCTSTR pStartPage;
};
union {
LPCPROPSHEETPAGE ppsp;
HPROPSHEETPAGE FAR *phpage;
};
PFNPROPSHEETCALLBACK pfnCallback;
} PROPSHEETHEADER, FAR *LPPROPSHEETHEADER;
typedef const PROPSHEETHEADER FAR *LPCPROPSHEETHEADER;
Members
dwSize
Size, in bytes, of this structure.
dwFlags
Array of flags that indicate which other members to use and which to ignore.
This member can be a combination of the following values:
Value
| Meaning
| PSH_DEFAULT
| Uses the default meaning for all structure members.
| PSH_HASHELP
| Displays the property sheet Help button. The Help button is enabled only when
the PSP_HASHELP flag is set in the PROPSHEETPAGE structure for the active page.
If any of the initial property sheet pages sets the PSP_HASHELP flag, the Help
button 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_MODELESS
| Causes the PropertySheet function to create the property sheet as a modeless dialog instead of the
default modal behavior. When this flag is set, PropertySheet returns immediately after the dialog is created and the return value from PropertySheet is the window handle of the property sheet dialog.
| PSH_NOAPPLYNOW
| Removes the Apply Now button.
| PSH_PROPSHEETPAGE
| Uses ppsp and ignores phpage when creating the pages for the property sheet.
| PSH_PROPTITLE
| Includes "Properties for" with the string specified by pszCaption in the title bar of the property sheet.
| PSH_USECALLBACK
| Calls the function specified by pfnCallback when initializing the property sheet defined by this structure.
| PSH_USEHICON
| Uses hIcon as the small icon in the title bar of the property sheet dialog box.
| PSH_USEICONID
| Uses pszIcon as the name of the icon resource to load and use as the small icon in the
title bar of the property sheet dialog box.
| PSH_USEPSTARTPAGE
| Uses pStartPage and ignores nStartPage when displaying the initial page of the property sheet.
| PSH_WIZARD
| Creates a wizard property sheet.
| PSH_RTLREADING
| Displays the title of the property sheet dialog using right-to-left reading
order on Hebrew or Arabic systems.
|
hwndParent
Handle of the owner window.
hInstance
Handle of the instance from which to load the icon or title string resource.
If pszIcon or pszCaption identifies a resource to load, this member must be specified.
hIcon
Handle of the icon to use as the small icon in the title bar of the property
sheet dialog box. If dwFlags does not include the PSH_USEHICON value, this member is ignored.
pszIcon
Icon resource to use as the small icon in the title bar of the property sheet
dialog box. This member can specify either the identifier of the icon resource
or the pointer to the string that specifies the name of the icon resource. If dwFlags does not include the PSH_USEICONID value, this member is ignored.
pszCaption
Title of the property sheet dialog box. This member can specify either the
identifier of a string resource or the pointer to a string that specifies the
title. If dwFlags includes the PSH_PROPTITLE value, the string "Properties for" is used with
the title.
nPages
Number of elements in the phpage array.
nStartPage
Zero-based index of the initial page that appears when the property sheet
dialog box is created.
pStartPage
Name of the initial page that appears when the property sheet dialog box is
created. This member can specify either the identifier of a string resource or
the pointer to a string that specifies the name.
ppsp
Pointer to an array of PROPSHEETPAGE structures that define the pages in the property sheet. If dwFlags does not include the PSH_PROPSHEETPAGE value, this member is ignored.
phpage
Pointer to an array that contains handles of property sheet pages. Each handle
must have been created by a previous call to the CreatePropertySheetPage function. If dwFlags includes the PSH_PROPSHEETPAGE value, this member is ignored.
pfnCallback
Pointer to an application-defined callback function that is called when the
property sheet is initialized. For more information about the callback function,
see the description of the PropSheetProc function. If dwFlags does not include the PSP_USECALLBACK value, this member is ignored.
See Also
CreatePropertySheetPage, PropertySheet, PROPSHEETPAGE, PropSheetProc
| Last news from Greatis Software |
 |
|
Nostalgia .Net |
|
.Net is powerful, but not all-powerful, so sometimes we need to use Win32 API for our .Net applications. It's simple enough with Platform Invoke if you have Win32 skill, but we do not always have time to dig the ancient documentation, declare the special types that are compatible with Win32, find the values of the Win32's constants and so on. Nostalgia .Net offers several simple-to-use classes, and components that will allow you to forget about the headache of Win32 and just use the power of Win32 in your application the same way as you use the native. Net classes. More » |
| Recommended software for developers |
 |
|
Ultimate Pack |
|
Component pack for Delphi and C++ Builder that contains runtime form designer, runtime object inspector, print suite and much more for the very special price. More » |
 |
|
Form Designer .Net |
|
Unique runtime form design solution that allows to edit any form in .Net WinForms application at runtime with full source codes for only 300 euro! More » |
 |
|
Print Suite .Net |
|
Print Suite .Net is a set of components for easy printing texts, images and grids from your WinForms applications. Full C# source codes are available More » |
 |
|
Gradient Controls .Net |
|
Gradient Controls .Net offers controls with gradient background feature. Labels, panels and so on... Full C# source codes are available More » |
 |
|
Greatis iGrid |
|
iGrid plots drawing grid right over your desktop, so you can use it everywhere, with any drawing application without any special plugins for different graphic editors. More » |
All the contacts and projectsDmitry Vasiliev (just.dmitry)
Related LinksSoftware for Visual Studio .NET developers Software for Delphi and C++ Builder developers Software for Visual Basic 6 developers Delphi Tips&Tricks MegaDetailed.NET More Online Helps Win32 Programmer's Reference Win32 Multimedia Programmer's Reference OLE Programmer's Reference Microsoft Windows Pen API Programmer's Reference Microsoft Windows Sockets 2 Reference Microsoft Windows Telephony API (TAPI) Programmer's Reference Unix Manual Pages
|