I need to customize a Print Dialog via PrintDlgEX in C++ (no MFC, no .NET).
I currently support printing from a PrintDlg dialog that is not customized.
PrintDlgEX dialogs add fields I don't want to see (Page Range and Collate for example). I also want to add a couple of fields that are unique to my application as well as adding Portrait and Landscape onto the dialog similar to the PrintDlg.
I've found the definition of PrintDlgEx:
What I know so far:
I have code working that will bring up the PrintDlgEX dialog.
I understand I have to create an instance of a callback class that implements the IPrintDialogCallback interface and connect it to lpCallback field. This class needs to define HandleMessage, InitDone and SelectionChange methods.
I understanding I need to create a dialog in my .rsc file that defines the lower portion of the print dialog. This has to be linked to the lpPrintTemplateName. I’ve found the PrnSetup.dlg file that has the default fields for this dialog.
What I'm after:
The absolute perfect solution would be to find a C++ example/sample app of the PrintDlgEX that shows a customized version of the dialog. You would think Microsoft would have this somewhere but I haven't found it with quite a bit of searching. I’m not looking for anything fancy, just enough to show how everything is connected.
If no sample is available any good books, documentation or sites that would explain the overall process and what needs to go in the callback functions would be helpful.
Any help is appreciated.