<< Click to Display Table of Contents >> VpeSetDefOutRect |
Sets the default output rectangle which will be used for each newly created page - NOT for the current page.
The output rectangle is very important for use with the AutoPageBreak option of VPE for rendering text.
See "Dynamic Positioning" and "Page Margins" in the Programmer's Manual for details.
"SP" stands for single-parameters, since you don't specify a RECT structure. This is very usable for interpreters, which don't support the RECT structure.
void VpeSetDefOutRect(
VpeHandle hDoc,
VpeCoord x,
VpeCoord y,
VpeCoord x2,
VpeCoord y2
)
VpeHandle hDoc
Document Handle
VpeCoord x, y, x2, y2
the output rectangle
Remarks:
The method VpeSetOutRect() calls internally SetDefOutRect() and sets the DefOutRect to the same rectangle. Therefore if you need to call VpeSetOutRect() and VpeSetDefOutRect() with different values at the same time, always call VpeSetOutRect() first.
Example:
VpeSetDefOutRectSP(hDoc, 3, 3, 19, 25)