Simulation support:

None. This function is mandatory for all drivers.

Description:

GreAccumulateBounds is called to merge bounds into the total bounds held by the presentation driver.

This function must be supported by the presentation driver. GreAccumulateBounds is used when a drawing is created to maintain a rectangle that forms the bounding box for the entire drawing. This rectangle is used in transforms and other functions that manipulate the entire drawing at once. GreAccumulateBounds can be handled by bit-map emulation.

#define INCL_GRE_DEVMISC3
#include <os2.h>

HDC       hdc;        /*  Device context handle. */
PRECTL    prclRect;   /*  Pointer to rectangle. */
PVOID     pInstance;  /*  Pointer to instance data. */
ULONG     lFunction;
BOOL      rc;         /*  Return codes. */

rc = GreAccumulateBounds(hdc, prclRect, pInstance,
       lFunction);


[Back: GreAccumulateBounds]
[Next: GreAccumulateBounds Parameter - hdc]