flCmd (ULONG) - input

      Flags controlling the way in which the border is drawn.

      Some of the DB_* flags are mutually exclusive. Only one of these four can be significant:

      • DB_PATCOPY (default)
      • DB_PATINVERT
      • DB_DESTINVERT
      • DB_AREAMIXMODE.
      Possible values are described in the following list:

      DB_ROP

        A group of flags that specify the mix to be used, for both the border and the interior.
      DB_PATCOPY
        Use the ROP_PATCOPY raster operation (see "GpiBitBlt" in the Graphics Programming Interface Programming Reference). This is a copy of the pattern to the destination.
      DB_PATINVERT
        Use the ROP_PATINVERT raster operation (see "GpiBitBlt" in the Graphics Programming Interface Programming Reference). This is an exclusive-OR of the pattern with the destination.
      DB_DESTINVERT
        Use the ROP_DESTINVERT raster operation (see "GpiBitBlt" in the Graphics Programming Interface Programming Reference). This inverts the destination.
      DB_AREAMIXMODE
        Map the current area foreground mix attribute into a Bitblt raster operation (see "GpiBitBlt" in the Graphics Programming Interface Programming Reference). The area background mix mode is ignored.
      DB_INTERIOR
        The area contained within the given rectangle, and not included within the borders (as given by cx and cy), is drawn.
      DB_AREAATTRS

        • If this is specified:

          For any border, the pattern used is the pattern as currently defined in the area attribute.

          For any interior, the pattern used is the same as if GpiSetAttrs for the area attributes is made with the background color of the area attribute being passed for the foreground color, and the foreground color of the area attribute being passed as the background color.

        • If this is not specified (default):

          For any border, the pattern used is the same as if GpiSetAttrs for the area attributes is made with a foreground color of clrFore, and a background color of clrBack.

          For any interior, the pattern used is the same as if GpiSetAttrs for the area attributes is made with a foreground color of clrBack, and a background color of clrFore.

        DB_STANDARD
          cx and cy are multiplied by the system SV_CXBORDER and SV_CYBORDER constants to produce the widths of the vertical and horizontal sides of the border.
        DB_DLGBORDER
          A standard dialog border is drawn, in the active titlebar color if DB_PATCOPY is specified, or the inactive titlebar color if DB_PATINVERT is specified. Other DB_ROP options, and DB_AREAATTRS, are ignored.

          DB_ROP and DB_AREAATTRS are also ignored for the interior. The interior is drawn in the color specified by clrBack.


        [Back] [Next]