Page Event Callbacks
Important
The modern print platform is Windows' preferred means of communicating with printers. We recommend that you use Microsoft's IPP inbox class driver, along with Print Support Apps (PSA), to customize the print experience in Windows 10 and 11 for printer device development.
For more information, see Modern print platform and the Print support app design guide.
When a user interacts with a property sheet page, the operation system sends notification of such window events as a changed focus or a modified value. How a CPSUI application receives notification of a page's window events depends on how the application has defined the page:
If the page was defined using CPSUI-supplied pages and templates, it can supply a CPSUI message handler.
If the application created a customized page that is not supplied by CPSUI, it must provide a dialog box procedure. For more information, see Dialog Box Procedures and CPSUI.
A CPSUI application supplies CPSUI with the address of a page event callback when it calls the ComPropSheet function.