Windows 3.1 Device Drivers (ddag31qh.hlp) (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
SET_BOUNDS
                                                     Up Next Previous
────────────────────────────────────────────────────────────────────────────
 
#define SET_BOUNDS 4109 
short Control(lpDevice, SET_BOUNDS, lpBounds, NULL)
LPPDEVICE lpDevice;
LPRECT lpBounds;
 
The SET_BOUNDS escape sets the bounding rectangle for the image being output
by the device driver when creating images in a file format such as
Encapsulated PostScript (EPS) and Hewlett-Packard Graphics Language (HPGL).
 
Parameter  Description
────────────────────────────────────────────────────────────────────────────
 
 
lpDevice   Points to a PDEVICE structure specifying the destination device.
 
lpBounds   Points to a RECT structure that specifies the bounds, in device
           coordinates, of the image to output.
 
Return Value
 
The return value is TRUE if successful. Otherwise, it is FALSE.
 
Comments
 
The application should issue this escape before each page. For single-page
jobs, this escape should be issued immediately after the STARTDOC escape.
 
When using coordinate transformation escapes, device drivers may not perform
bounding-box calculations correctly. Using this escape saves the driver from
the task of calculating the bounding box.
 
See Also
 
STARTDOC, PDEVICE, RECT
 
 
                                      ♦