BCGControlBar Pro for MFC
virtual void CBCGPChartVisualObject::OnDraw ( CBCGPGraphicsManager pGM,
const CBCGPRect rectClip,
DWORD  dwFlags = BCGP_DRAW_STATIC|BCGP_DRAW_DYNAMIC 
)
virtual

Called to draw the chart.

This is the key method that draws the chart. It calls a couple of overridable drawing helpers that draw different parts of the chart.

It also calls AdjustLayout() before drawing if the chart is "dirty". You can override this method in a derived class if you need to customize drawing in any way.

flags can be one or combination of the following values:

  • BCGP_DRAW_STATIC - visual object should render static elements
  • BCGP_DRAW_DYNAMIC - a visual object should render dynamic elements

A chart displays only static elements.

Parameters
pGMA pointer to a graphics manager.
rectClipClipping rectangle.
dwFlagsFlags.

Implements CBCGPBaseVisualObject.