typedef struct _COMPROPSHEETUI {
WORD cbSize;
WORD Flags;
HINSTANCE hInstCaller;
LPTSTR pCallerName;
DWORD UserData;
LPTSTR pHelpFile;
_CPSUICALLBACK pfnCallBack;
POPTITEM pOptItem;
PDLGPAGE pDlgPage;
WORD cOptItem;
WORD cDlgPage;
DWORD IconID;
LPTSTR pOptItemName;
WORD CallerVersion;
WORD OptItemVersion;
DWORD dwReserved[4];
} COMPROPSHEETUI, *PCOMPROPSHEETUI;
The COMPROPSHEETUI data structure contains the caller-specific data required by the CPSUI to construct and display the property sheet pages.
|
Value |
Description |
|
CPSUIF_UPDATE_PERMISSION |
All valid items to which pOptItem points are changeable by the user. |
|
CPSUIF_ICONID_AS_HICON |
The CPSUI should interpret IconID as a handle to an icon rather than a resource ID. |
|
CPSUIF_ABOUT_CALLBACK |
If the end-user selects the About… button in the treeview tab, the CPSUI should call the callback to which pfnCallBack points with the Reason field of the pComPropSheetUICBParam parameter set to CPSUICB_REASON_ABOUT. |
|
DLGPAGE |
Description |
|
CPSUI_PDLGPAGE_DOCPROP |
The property sheet has two standard pages, whose tabs are Page Setup and Advanced. The Advanced page is a treeview. |
|
CPSUI_PDLGPAGE_ADVDOCPROP |
The property sheet has one treeview page whose tab reads Advanced. |
|
CPSUI_PDLGPAGE_PRINTERPROP |
The property sheet has one treeview page whose tab reads Device Settings. This page is a CPSUI-defined standard printer property sheet. |
|
CPSUI_PDLGPAGE_TREEVIEWONLY |
The property sheet has one treeview page. |
A COMPROPSHEETUI structure is initialized by the caller and passed to the CPSUI’s PFNCOMPROPSHEET callback as lParam1 when Function is CPSFUNC_ADD_PCOMPROPSHEETUI.
If the CPSUIF_ABOUT_CALLBACK bit is set in the Flags field, the callback to which pfnCallBack points must handle a user request to see the About dialog box. If this bit is not set, the CPSUI calls the Win32 ShellAbout function with the pCallerName and CallerVersion fields formatted as the szApp parameter, and pOptItemName and OptItemVersion formatted as the szOtherStuff parameter.
The CPSUI automatically modifies the DlgPageIdx fields of each OPTITEM when the user specifies CPSUI_PDLGPAGE_Xxx in pDlgPage.