Simulation support:
This function is simulated by a handling routine in the graphics engine.
Description
GreCombineRectRegion combines a region with a rectangle to make a new region. If COM_TRANSFORM is not set, the function expects the point to be in device coordinates. The destination region can be the same as the source region. An error is raised if either of the regions specified is currently selected as the clip region. The source and destination regions must be of the same device class.
This function can be hooked by the presentation driver.
#define INCL_GRE_REGIONS #include <os2.h> HDC hdc; /* Device context handle. */ HRGN hrgnDst; /* Destination region handle. */ PRECTL prclRect; /* Pointer to rectangle. */ HRGN hrgnSrc; /* Region handle. */ LONG cmdMode; /* Method of combination. */ PVOID pInstance; /* Pointer to instance data. */ ULONG lFunction; /* High-order WORD=flags; low-order WORD=NGreCombineRectRegion. */ LONG rc; rc = GreCombineRectRegion(hdc, hrgnDst, prclRect, hrgnSrc, cmdMode, pInstance, lFunction);