Tech Support > Microsoft Windows > Drivers > CPSUISAM example and Printer Property Sheet in General
CPSUISAM example and Printer Property Sheet in General
Posted by ssylee on June 27th, 2008


I have the following questions after going through the CPSUI example and what
I have for my printer driver so far:

For the CPSUI example
1. in SetupComPropSheetUi , Do I have to use a COMPROPSHEETUI structure for
using treeview rather than PROPSHEETPAGE structure?
in the TVTestCallback of the CPSUISAM
2. what does “CPSUICB_REASON_OPTITEM_SETFOCUS” mean by "input focus"?
3. Does the switch-cases on DMPubID look at the range box values and other
drop-down menus + yes/no conditions?
In general:
4. Does DrvDocumentPropertySheets and DrvDevicePropertySheets have to be
implemented at the same time to ensure that the custom dialog data structure
and the property sheet structures are working properly? What would you
recommend on progressing on migrating the CPSUISAM example? Should I have
somewhat an empty DrvDocumentPropertySheet and DrvDevicePropertySheet first,
then fill in each structure one at a time? I don't feel confident about
filling everything at the same time (or at least migrating everything on that
example from the CPSUI setup callback onwards.