Simulation support:
This function is simulated by a handling routine in the graphics engine.
Description
GreRestoreRegion is called during RestoreDC and CloseDC to allow the region handling routines to restore their local data structures. When a DC is closed, GreRestoreRegion is called with a count of 0 to free its local data. The clip region currently selected into the DC is deleted by this function.
This function can be hooked by the presentation driver.
#define INCL_GRE_CLIP #include <os2.h> HDC hdc; /* Device context handle. */ LONG cSave; /* DC save level. */ PVOID pInstance; /* Pointer to instance data. */ ULONG lFunction; /* High-order WORD=flags; low-order WORD=NGreRestoreRegion. * / BOOL fSuccess ; / * Return codes . * / fSuccess = GreRestoreRegion ( hdc , cSave , pInstance , lFunction ) ;