<< Return to Main Index

< Return to Class Index

struct CGXBrush

The CGXBrush class is a wrapper for the LOGBRUSH structure. CGXBrush can be written to the application profile and loaded from it. Serialization is also supported.

CGXBrush also adds support for 33 predefined patterns you can use in your grid.

The following attributes are provided by the CGXBrush class:

Normally, a CGXBrush object is used to specify the interior brush of a cell:

   SetStyleRange(
      CGXRange(2,2),
      CGXStyle()
         .SetInterior( CGXBrush().SetColor(RGB(255,0,0) )
      );

Two provided inline-methods enable you to serialize a CGXBrush object with the << and >> operators:

   ar << brush
   -- Or --
   ar >> brush;

See Also

CGXStyle

CGXBrush

Class Members