BCGSuite for MFC
int CBCGPGaugeImpl::AddColoredRange ( double  dblStartValue,
double  dblFinishValue,
const CBCGPBrush brFill,
const CBCGPBrush brFrame,
int  nScale = 0,
double  dblStartWidth = 0.,
double  dblFinishWidth = 0.,
double  dblOffsetFromFrame = 0.,
const CBCGPBrush brTextLabel = CBCGPBrush(),
const CBCGPBrush brTickMarkOutline = CBCGPBrush(),
const CBCGPBrush brTickMarkFill = CBCGPBrush(),
BOOL  bRedraw = FALSE 
)

Adds a new colored range to a gauge.

Call this method to add a new colored range to a gauge.

Parameters
dblStartValueColored range start value
dblFinishValueColored range finish value
brFillColored range background brush.
brFrameColored range foreground brush.
nScaleIndex of scale to add a new colored range to.
dblStartWidthstart width (in pixels)
dblFinishWidthfinish width (in pixels)
dblOffsetFromFrameoffset from the gauge frame (in pixels)
brTextLabeltext label color; if this parameter is specified, all text labels within this range will be drawn with this color.
brTickMarkOutlinetick mark outline color; if this parameter is specified, all tick marks within this range will be drawn with this color.
brTickMarkFilltick mark background color; if this parameter is specified, all tick marks within this range will be filled by this color.
bRedrawTRUE - redraw the gauge.