Simulation support:
This function is simulated by a handling routine in the graphics engine.
Description
GreSetupDC initializes the device context to the region determined by flOptions.
This function can be hooked by the presentation driver.
#define INCL_GRE_CLIP
#include <os2.h>
HDC hdc; /* Device context handle. */
HRGN hrgnVis; /* Visible region handle. */
LONG xOrg; /* X-coordinate of DC origin, specified in screen coordinates. */
LONG yOrg; /* Y-coordinate of DC origin, specified in screen coordinates. */
PRECTL prclBounds; /* Bounding rectangle in device coordinates. */
ULONG flOptions; /* Option flags. */
PVOID pInstance; /* Pointer to instance data. */
ULONG lFunction; /* High-order WORD=flags; low-order WORD=NGreSetupDC. */
BOOL fSuccess; /* Return codes. */
fSuccess = GreSetupDC(hdc, hrgnVis, xOrg,
yOrg, prclBounds, flOptions,
pInstance, lFunction);