BCGSuite for MFC
int CBCGPGaugeImpl::AddLevelBar ( const CBCGPBrush brFill,
const CBCGPBrush brFrame,
const CBCGPBrush brFillValue,
int  nScale = 0,
double  dblWidth = 0.,
double  dblOffsetFromFrame = 0.,
CBCGPGaugeLevelBarObject::BCGP_GAUGE_LEVEL_OBJECT_STYLE  style = CBCGPGaugeLevelBarObject::BCGP_GAUGE_LEVEL_OBJECT_RECT,
BOOL  bRedraw = FALSE 
)

Adds a new level bar to a gauge.

Call this method to add a new level bar to a gauge.

Parameters
brFillLevel bar background brush (empty area).
brFrameLevel bar frame brush.
brFillValueLevel bar background brush (value area).
nScaleIndex of scale to add a new level bar to.
dblWidthThe width (in pixels).
dblOffsetFromFrameThe offset from frame (in pixels).
styleLevel bar style.
bRedrawTRUE - redraw the gauge.
Returns
Zero-based index of the level bar.