BCGControlBar Pro for MFC
CBCGPChartRangeObject* CBCGPChartVisualObject::AddChartRangeObject ( double  dblBottomVal,
double  dblTopVal,
BOOL  bHorz,
const CBCGPBrush brFill 
)

Adds a new Range Chart Object.

Call this helper to add a Range Chart Object to a diagram.

You can format the returned range (set outline style etc) later.

Parameters
dblBottomValSpecifies lower range value in X (for vertical range) or Y (for horizontal range) axis coordinates.
dblTopValSpecifies upper range value in X (for vertical range) or Y (for horizontal range) axis coordinates.
bHorzTRUE - add a horizontal range; FALSE - add a vertical range.
brFillRange fill color.