Simulation support:
This function is simulated by a handling routine in the graphics engine.
Description
GreSetPageViewport name field sets the page viewport in device coordinates so that the graphics engine can update the device transform by using the page window and page viewport coordinates.
This function can be hooked by the presentation driver.
#define INCL_GRE_XFORMS #include <os2.h> HDC hdc; /* Device context handle. */ PRECTL prclViewport; /* Pointer to page viewport boundaries in device coordinates. */ ULONG flOptions; /* Reserved parameter. The only valid value is 0. */ PVOID pInstance; /* Pointer to instance data. */ ULONG lFunction; /* High-order WORD=flags; low-order WORD=NGreSetPageViewport. */ BOOL fSuccess; /* Return codes. */ fSuccess = GreSetPageViewport(hdc, prclViewport, flOptions, pInstance, lFunction);