Simulation support:
This function is simulated by a handling routine in the graphics engine.
Description
GreRegionSelectBitmap is called when a new bit-map handle is selected into a memory DC. It removes the old visible region and informs the presentation driver that the DC region must be recalculated.
Note: In a nondisplay DC, the visible region represents the device boundary.
This function can be hooked by the presentation driver.
#define INCL_GRE_CLIP #include <os2.h> HDC hdc; /* Device context handle. */ HBITMAP hbm; /* Handle of bit map to be selected. */ PVOID pInstance; /* Pointer to instance data. */ ULONG lFunction; /* High-order WORD=flags; low-order WORD=NGreRegionSelectBitmap. */ BOOL fSuccess; /* Return codes. */ fSuccess = GreRegionSelectBitmap(hdc, hbm, pInstance, lFunction);