Simulation support:
This function is mandatory for display drivers. For other drivers, it is simulated by a handling routine in the graphics engine.
Description:
GreSetStyleRatio sets the style ratio used by the presentation driver's line-drawing algorithm to determine which pels are turned ON to draw a sloping line.
#define INCL_GRE_DEVMISC2
#include <os2.h>
HDC hdc; /* The device context handle. */
PBYTE pRatio;
PVOID pInstance; /* A pointer to instance data. */
ULONG lFunction; /* High-order WORD=flags; low-order WORD=NGreSetStyleRatio. */
BOOL fSuccess; /* Return codes. */
fSuccess = GreSetStyleRatio(hdc, pRatio, pInstance,
lFunction);