CGXProperties::GetColor

COLORREF GetColor(int nIndex) const;

nIndex

Unique index for the color-property (returned from AddColorProperty). For default color-properties, you can use one of the following constants:

  • GX_COLOR_GRIDLINES: grid lines.

  • GX_COLOR_FIXEDLINES: separator line between frozen columns/rows and nonfrozen columns/rows.

  • GX_COLOR_TRACKINGLINE: outline the line for the row/column being sized.

  • GX_COLOR_DRAGGINGLINE: outline the line for the destination row/column being dragged.

  • GX_COLOR_BACKGROUND: background color for the bottom and for the right of the grid area.

Return Value

An RGB value.

Remarks

Returns the color for a specific color-property.

When you have registered additional colors with AddColorProperty, you should pass the index returned by AddColorProperty to GetColor.

See Also

 CGXProperties::SetColor  CGXProperties::AddColorProperty

CGXProperties

 Class Overview |  Class Members