typedef struct _CPSUICBPARAM {
WORD cbSize;
WORD Reason;
HWND hDlg;
POPTITEM pOptItem;
WORD cOptItem;
WORD Flags;
POPTITEM pCurItem;
union {
LONG OldSel;
LPTSTR pOldSel;
};
DWORD UserData;
DWORD Result;
} CPSUICBPARAM, *PCPSUICBPARAM;
The CPSUICBPARAM structure contains the reason for the CPSUI’s call to _CPSUICALLBACK, and the parameters needed by _CPSUICALLBACK to make changes to an option item and return an action to the CPSUI. The CPSUI can then redisplay the treeview or Page Setup data.
|
Reason |
Description |
|
CPSUICB_REASON_ |
The user has made a change to the item to which pCurItem points. If the DMPubID field of the affected OPTITEM is DMPUB_COPIES_COLLATE, the CPSUI enables/disables the extended check box without calling back to _CPSUICALLBACK. |
|
CPSUICB_REASON_ |
The user has pushed the push button, and the push button item’s OPTPARAM Style field is set to PUSH BUTTON_TYPE_CALLBACK. |
|
CPSUICB_REASON_ |
The user has changed state in the extended check box described by the structure to which pCurItem->pExtChkBox points. |
|
CPSUICB_REASON_ |
The user has pushed the push button, and the push button item’s OPTPARAM Style field is set to PUSH BUTTON_TYPE_DLGPROC. |
|
CPSUICB_REASON_ |
The user has pushed the extended push button described by the structure to which pCurItem->pExtPush points. |
|
CPSUICB_REASON_ |
The user has pushed the Apply Now push button. The CPSUI sets pCurItem to point to the item to which pOptItem points. It also sets OldSel to -1 to indicate that all valid changed items should be applied now. |
|
CPSUICB_REASON_ |
An option item has keyboard focus. The CPSUI calls the callback so that it can examine the item. |
|
CPSUICB_REASON_ |
After changing option(s), the user has pushed the Undo push button to undo the changes. |
|
CPSUICB_REASON_ |
The user has pushed the About Xxx push button on the treeview page, and the CPSUIF_ABOUT_CALLBACK flag is set, indicating that the caller has hooked the About page to display their proprietary About information. _CPSUICALLBACK sets pCurItem to point to the item to which pOptItem points, and sets pOldSel to point to the original copy of the COMPROPSHEETUI structure passed to the CPSUI. |
When Reason is CPSUICB_REASON_APPLYNOW, _CPSUICALLBACK must set the requested result in the Result field when it returns a value other than CPSUICB_ACTION_NO_APPLY_EXIT. The CPSUI sends Result to the parent of the current property sheet page.