Simulation support:

None. This function is mandatory for all drivers.

Description:

GreDrawBorder draws an internal border in a rectangular frame. The interior can also be filled.

This function must be hooked by all presentation drivers. Drivers for hardcopy devices do nothing except return TRUE (Successful). Display drivers must return Failure if fast-frame drawing is not supported. GreDrawBorder is not called by any specific function; it is used to do fast frame drawing.

#define INCL_GRE_BITMAPS
#include <os2.h>

HDC       hdc;          /*  Device context handle. */
PRECTL    prclFrame;
ULONG     cxBorder;     /*  Thickness of vertical border in device coordinates. */
ULONG     cyBorder;     /*  Thickness of horizontal border in device coordinates. */
LONG      clrBorder;    /*  Color of border in any valid format. */
LONG      clrInterior;  /*  Color of interior in any valid format. */
ULONG     flCmd;        /*  Options flag. */
PVOID     pInstance;    /*  Pointer to instance data. */
ULONG     lFunction;
BOOL      rc;           /*  Return Codes. */

rc = GreDrawBorder(hdc, prclFrame, cxBorder,
       cyBorder, clrBorder, clrInterior, flCmd,
       pInstance, lFunction);


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