Platforms to show: All Mac Windows Linux Cross-Platform

WindowsPrintDialogMBS class

Type Topic Plugin Version macOS Windows Linux iOS Targets
class Printing MBS Win Plugin 12.1 ❌ No ✅ Yes ❌ No ❌ No Desktop only
The class for showing the windows print dialog.

Constants

Constant Value Description
START_PANEL_GENERAL &hffffffff Special value for StartPanel property to select general panel.

Flag Constants

Constant Value Description
PD_ALLPAGES 0 The default flag that indicates that the All radio button is initially selected. more
PD_COLLATE &h00000010 If this flag is set, the Collate check box is selected. more
PD_CURRENTPAGE &h00400000 If this flag is set, the Current Page radio button is selected. If none of the PD_PAGENUMS, PD_SELECTION, or PD_CURRENTPAGE flags is set, the All radio button is selected.
PD_DISABLEPRINTTOFILE &h00080000 Disables the Print to File check box.
PD_EXCLUSIONFLAGS &h01000000 Indicates that the ExclusionFlags member identifies items to be excluded from the printer driver property pages. more
PD_EXCL_COPIESANDCOLLATE &h00008100 Excludes the Copies and Collate controls from the printer driver property pages in a Print property sheet. This flag should always be set when the application uses the default Copies and Collate controls provided by the lower portion of the General page of the Print property sheet.
PD_HIDEPRINTTOFILE &h00100000 Hides the Print to File check box.
PD_NOCURRENTPAGE &h00800000 Disables the Current Page radio button.
PD_NONETWORKBUTTON &h00200000 Hides and disables the Network button.
PD_NOPAGENUMS 8 Disables the Pages radio button and the associated edit controls.
Also, it causes the Collate check box to appear in the dialog.
PD_NOSELECTION 4 Disables the Selection radio button.
PD_NOWARNING &h00000080 Prevents the warning message from being displayed when an error occurs.
PD_PAGENUMS 2 If this flag is set, the Pages radio button is selected. If none of the PD_PAGENUMS, PD_SELECTION, or PD_CURRENTPAGE flags is set, the All radio button is selected. If this flag is set when the PrintDialog function returns, the PageRanges member indicates the page ranges specified by the user.
PD_PRINTSETUP &h00000040 Causes the system to display the Print Setup dialog box rather than the Print dialog box.
PD_PRINTTOFILE &h00000020 If this flag is set, the Print to File check box is selected. more
PD_RETURNDC &h00000100 Causes PrintDialog to return a device context matching the selections the user made in the property sheet.
The device context is returned in DC property.
PD_RETURNDEFAULT &h00000400 If this flag is set, the PrintDialog function does not display the property sheet. more
PD_RETURNIC &h00000200 Similar to the PD_RETURNDC flag, except this flag returns an information context rather than a device context.
If neither PD_RETURNDC nor PD_RETURNIC is specified, hDC is undefined on output.
PD_SELECTION 1 If this flag is set, the Selection radio button is selected.
If none of the PD_PAGENUMS, PD_SELECTION, or PD_CURRENTPAGE flags is set, the All radio button is selected.
PD_SHOWHELP &h00000800 Causes the dialog box to display the Help button.
PD_USEDEVMODECOPIES &h00040000 Same as PD_USEDEVMODECOPIESANDCOLLATE.
PD_USEDEVMODECOPIESANDCOLLATE &h00040000 This flag indicates whether your application supports multiple copies and collation. more

Result Constants

Constant Value Description
PD_RESULT_APPLY 2 The user clicked the Apply button and later clicked the Cancel button. This indicates that the user wants to apply the changes made in the property sheet, but does not yet want to print. The WindowsPrintDialogMBS contains the information specified by the user at the time the Apply button was clicked.
PD_RESULT_CANCEL 0 The user clicked the Cancel button. The information in the WindowsPrintDialogMBS is unchanged.
PD_RESULT_PRINT 1 The user clicked the Print button. The WindowsPrintDialogMBS contains the information specified by the user.

This class has no sub classes.

Some examples using this class:

Blog Entries

Release notes


The items on this page are in the following plugins: MBS Win Plugin.


WindowsPreviewHandlerMBS   -   WindowsPrinterInfoMBS


The biggest plugin in space...