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 TypeStructure Members
-
lStructSize Size of this structure.
-
hwndOwner Handle of the owning window.
-
hDevMode Pointer to a
DEVMODEstructure.-
hDevNames Pointer to a
DEVNAMESstructure.-
flags Flags describing this common dialog box. You must set the
PSD_ENABLEPAGESETUPTEMPLATEflag to use a modified template. You must set thePSD_ENABLEPAGESETUPHOOKflag to use the page setup hook that thelpfnPageSetupHookfunction pointer points to. You must set thePSD_ENABLEPAGEPAINTHOOKflag to use the page setup hook that thelpfnPagePaintHookfunction pointer points to-
ptPaperSize Pointer to a
POINTAPIstructure.-
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.hInstanceproperty.-
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 ...
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