Simulation support:
This function is simulated by a handling routine in the graphics engine.
Description
GreSetXformRect intersects a rectangle in device coordinates with the DC region. The rectangle is inclusive at the bottom and left boundaries, exclusive at the top and right boundaries.
This function can be hooked by the presentation driver.
#define INCL_GRE_CLIP #include <os2.h> HDC hdc; /* Device context handle. */ PRECTL prclRect; /* Pointer to a rectangle in device coordinates. */ PVOID pInstance; /* Pointer to instance data. */ ULONG lFunction; /* High-order WORD=flags; low-order WORD=NGreSetXformRect. */ LONG rc; /* Return codes. */ rc = GreSetXformRect(hdc, prclRect, pInstance, lFunction);