Name
PRINTDLG
Synopsis
Defines the Print common dialog box:
Public Type PRINTDLG
lStructSize As Long
hwndOwner As Long
hDevMode As Long
hDevNames As Long
hdc As Long
flags As Long
nFromPage As Integer
nToPage As Integer
nMinPage As Integer
nMaxPage As Integer
nCopies As Integer
hInstance As Long
lCustData As Long
lpfnPrintHook As Long
lpfnSetupHook As Long
lpPrintTemplateName As String
lpSetupTemplateName As String
hPrintTemplate As Long
hSetupTemplate As Long
End TypeStructure Members
-
lStructSize Size of this structure.
-
hwndOwner Handle of the owning window.
-
hDevMode Pointer to a
DEVMODEstructure.-
hDevNames Pointer to a
DEVNAMESstructure.-
hdc Handle to a device context.
-
flags Flags describing this common dialog box. You must set the
PD_ENABLEPRINTTEMPLATEflag to use a modified template for the Print dialog box. You must set thePD_ENABLESETUPTEMPLATEflag to use a modified template for the Print Setup dialog box.-
nFromPage Starting page.
-
nToPage Ending page.
-
nMinPage Minimum starting page number.
-
nMaxPage Maximum ending page number.
-
nCopies Number of copies.
-
hInstance The instance handle of the object that contains the dialog resource. This is usually set equal to the
App.hInstanceproperty.-
lCustData Application-defined data passed in to the hook.
-
lpfnPrintHook A pointer to the developer-defined dialog hook function.
-
lpfnSetupHook A pointer to the developer-defined Print Setup dialog hook function.
-
lpPrintTemplateName The ID of the modified Print dialog resource.
-
lpSetupTemplate ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access