## Presentation Device Driver Reference for OS/2

[prev][next][parent][TOC]

### GreDrawBorder Parameter - flCmd

flCmd (ULONG) - input Options flag.

Valid values are:

DB_ROP An option flag that defines the mix to be used for the border and the interior. The mixes are mutually exclusive with one another but can be combined independently with DB_INTERIOR or DB_AREAATTRS. This option can have any of the following values:

DB_PATCOPY (Default) Use ROP_PATCOPY (see GreBitblt). This is a copy of the pattern to the destination.

DB_PATINVERT Exclusive-OR the current pattern and the destination (ROP_ PATINVERT). Current mix and color parameters are ignored.

DB_DESTINVERT Inverts the destination (ROP_DESTINVERT).

DB_AREAMIXMODE Maps the current area foreground-mix attribute to a BitBlt raster operation. The area background-mix mode is ignored.

DB_INTERIOR Fills the area defined by prclFrame, excluding the border defined by cxBorder and cyBorder.

DB_AREAATTRS When set, the pattern used for the border is the one currently defined in the area attribute. The pattern used for the interior is the one that would be obtained by calling GreSetAttributes with the area attribute background color passed for the foreground color, and the area attribute foreground color passed for the background. See GreSetAttributes.

When this flag is not set (default), the border pattern is equivalent to using GreSetAttributes for the area attributes, which use clrBorder as foreground color and clrInterior as the background.

The Interior pattern is equivalent to using GreSetAttributes for the area attributes, which use clrInterior color as foreground color and clrBorder as the background.

The handling routine should ignore the remaining flags, DB_STANDARD and DB_ DLGBORDER, which are used by the Frame Manager.