Simulation support:

None. This function is mandatory for all drivers.

Description:

GreGetBoundsData stores the bounding rectangle of previous drawing primitives at the address indicated by pBoundsData.

This function must be supported by the presentation driver. GreGetBoundsData is called by GpiQueryBoundaryData in response to an application's request for the current boundary data for a presentation space and device context pair. This function can be handled by bit-map simulation.

#define INCL_GRE_DEVMISC3
#include <os2.h>

HDC       hdc;          /*  Device context handle. */
ULONG     flOptions;    /*  Option flags. */
PRECTL    pBoundsData;
PVOID     pInstance;    /*  Pointer to instance data. */
ULONG     lFunction;    /*  High-order WORD=flags; low-order WORD=NGreGetBoundsData. */
BOOL      rc;           /*  Return Code. */

rc = GreGetBoundsData(hdc, flOptions, pBoundsData,
       pInstance, lFunction);


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