Simulation support:

This function is mandatory for display drivers. For other drivers, it is simulated by a handling routine in the graphics engine.

Description:

GreGetStyleRatio stores the style ratio X-direction and Y-direction step values at the location addressed by pRatio.

#define INCL_GRE_DEVMISC2
#include <os2.h>

HDC      hdc;        /*  The device context handle. */
PBYTE    pRatio;     /*  A pointer to a style ratio value. */
PVOID    pInstance;  /*  A pointer to instance data. */
ULONG    lFunction;  /*  High-order WORD=flags; low-order WORD=NGreGetStyleRatio. */
BOOL     fSuccess;   /*  Return codes. */

fSuccess = GreGetStyleRatio(hdc, pRatio, pInstance,
             lFunction);


[Back: GreGetStyleRatio]
[Next: GreGetStyleRatio Parameter - hdc]