Name

PRINTDLGEX

Synopsis

Defines a Print Property Sheet common dialog box:

Public Type PRINTDLGEX
	    lStructSize As Long              
        hwndOwner As Long                     
        hDevMode As Long                     
        hDevNames As Long                     
        hdc As Long                     
        flags As Long                     
	    flags2 As Long                     
	    Exclusionflags As Long              
        nPageRanges As Long              
        nMaxPageRanges As Long              
	    lpPageRanges As Long              
	    nMinPage As Long              
        nMaxPage As Long              
        nCopies As Long              
        hInstance As Long                     
	    lpPrintTemplateName As Long       
	    lpCallback As Long                     
        nPropertyPages As Long              
	    lphPropertyPagesAs String              
        nnStartPage As Long              
        dwResultAction As Long              
End Type

Structure Members

lStructSize

Size of this structure.

hwndOwner

Handle of the owning window.

hDevMode

Pointer to a DEVMODE structure.

hDevNames

Pointer to a DEVNAMES structure.

hdc

Handle to a device context.

flags

Flags describing this common dialog box. You must set the PD_ENABLEPRINTTEMPLATE flag to use a modified dialog template for the General tab.

flags2

Must be set to zero.

Exclusionflags

Excludes controls from the Print Driver Property page.

nPageRanges

Number of page ranges.

nMaxPageRanges

Size of lpPageRanges.

lpPageRanges

Pointer to array of PRINTPAGERANGE structures.

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.hInstance property.

lpPrintTemplateName

The ID of the modified dialog resource for the General tab.

lpCallback

A pointer to the developer-defined dialog hook function.

nPropertyPages

Get Subclassing and Hooking with Visual Basic now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.