Simulation support:
None. This function is mandatory for all drivers.
Description:
GreSetCurrentPosition sets the current (X,Y) position and resets the line type sequence.
This function must be supported by all presentation drivers. GreSetCurrentPosition is called by the function GpiSetCurrentPosition. GreSetCurrentPosition might be called in response to any of the Presentation Manager drawing functions, which end their operations by updating the current presentation space position.
#define INCL_GRE_LINES #include <os2.h> HDC hdc; /* Device context handle. */ PPOINTL pptlPosition; /* Pointer to new current position. */ PVOID pInstance; /* Pointer to instance data. */ ULONG lFunction; /* High-order WORD=flags; low-order WORD=NGreSetCurrentPosition. */ BOOL rc; /* Return code. */ rc = GreSetCurrentPosition(hdc, pptlPosition, pInstance, lFunction);