Simulation support:
This function is mandatory for display drivers. For other drivers, it is simulated by a handling routine in the graphics engine.
Description:
GreRestoreScreenBits restores a rectangle of bits to a screen rectangle and can also free the handle of the saved bits.
#define INCL_GRE_BITMAPS #include <os2.h> HDC hdc; /* The device context handle. */ ULONG hsbBits; /* The handle to screen bits to be restored. */ PRECTL prclRect; ULONG flOptions; PVOID pInstance; /* A pointer to instance data. */ ULONG lFunction; BOOL fSuccess; /* Return codes. */ fSuccess = GreRestoreScreenBits(hdc, hsbBits, prclRect, flOptions, pInstance, lFunction);