Simulation support:
This function is simulated by a handling routine in the graphics engine.
Description
GreOffsetRegion moves the given region by the specified amounts (unless the region is in use as a clipping region when an error is raised).
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. */ PPOINTL pdpt; /* Pointer to offset by which region is to be moved, in device coordinates: */ PVOID pInstance; /* Pointer to instance data. */ ULONG lFunction; /* High-order WORD=flags; low-order WORD=NGreOffsetRegion. */ BOOL fSuccess; /* Return codes. */ fSuccess = GreOffsetRegion(hdc, hrgn, pdpt, pInstance, lFunction);