Name

PAGESETUPDLG

Synopsis

Defines the Page Setup common dialog box:

Public Type PAGESETUPDLG
        lStructSize As Long
        hwndOwner As Long  
        hDevMode As Long 
        hDevNames As Long                     
	    flags As Long                     
        ptPaperSize As POINTAPI              
        rtMinMargin As Rect              
        rtMargin As Rect                     
        hInstance As Long                     
        lCustData As Long                     
        lpfnPageSetupHook As Long              
        lpfnPagePaintHook As Long              
        lpPageSetupTemplateName As String       
        hPageSetupTemplate 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.

flags

Flags describing this common dialog box. You must set the PSD_ENABLEPAGESETUPTEMPLATE flag to use a modified template. You must set the PSD_ENABLEPAGESETUPHOOK flag to use the page setup hook that the lpfnPageSetupHook function pointer points to. You must set the PSD_ENABLEPAGEPAINTHOOK flag to use the page setup hook that the lpfnPagePaintHook function pointer points to

ptPaperSize

Pointer to a POINTAPI structure.

rtMinMargin

Minimum sizes of the margins.

rtMargin

Actual sizes of the margins.

hInstance

The instance handle of the object that contains the dialog resource. This is usually set equal to the App.hInstance property.

lCustData

Application-defined data passed in to the hook.

lpfnPageSetupHook

A pointer to the developer-defined dialog hook function.

lpfnPagePaintHook

A pointer to the developer-defined dialog hook function, which specifically intercepts the painting messages for the sample page object ...

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.