Simulation support:
This function is simulated by a handling routine in the graphics engine.
Description
GreRectInRegion checks whether any part of a given rectangle lies within the specified region. GreRectInRegion raises an error if hrgn is the handle of the currently selected clip region.
This function can be hooked by the presentation driver.
#define INCL_GRE_REGIONS #include <os2.h> HDC hdc; /* Device context handle. */ HRGN hrgn; /* Region handle. */ PRECTL prclRect; /* Pointer to rectangle in device coordinates. */ PVOID pInstance; /* Pointer to instance data. */ ULONG lFunction; /* High-order WORD=flags; low-order WORD=NGreRectInRegion. */ LONG rc; /* Return codes. */ rc = GreRectInRegion(hdc, hrgn, prclRect, pInstance, lFunction);