BCGSuite for MFC
CBCGPChartView

Detailed Description

The CBCGPChartView class simplifies use of the Chart control CBCGPChartCtrl with MFC's document-view architecture.

CBCGPChartView is capable of displaying an advanced legend as a separate control automatically connected to a chart hosted in the view. You have to call CBCGPChartView::EnableAdvancedLegend to display the legend.

You can call CBCGPChartView::GetLegend to obtain a pointer to legend visual object. If you wish to display a custom legend, call CBCGPChartView::GetLegendCtrl and then create a custom legend calling CBCGPChartLegendCtrl::CreateCustomLegend.

For advanced legend customization process BCGM_ON_CHART_LEGEND_CONTENT_CREATED in a CBCGPChartView - derived class.

See also
CBCGPChartVisualObject
+ Inheritance diagram for CBCGPChartView:

Public Member Functions

 EnableAdvancedLegendDisplays an advanced legend that is automatically connected to hosted chart
 
 GetChartReturns a pointer to underlined Chart visual object.
 
 GetChartCtrlReturns the embedded chart control.
 
 GetLegendReturns a pointer to advanced legend
 
 GetLegendCtrlReturns a pointer to control that hosts advanced legend in the view
 

Additional Inherited Members

- Protected Member Functions inherited from CBCGPGestureBase
 OnGestureEventBeginCalled by the framework to handle BCGP_GID_BEGIN notification.
 
 OnGestureEventEndCalled by the framework to handle BCGP_GID_END notification.
 
 OnGestureEventPressAndTapCalled by the framework to handle BCGP_GID_PRESSANDTAP notification.
 
 OnGestureEventRotateCalled by the framework to handle BCGP_GID_ROTATE notification.
 
 OnGestureEventTwoFingerTapCalled by the framework to handle BCGP_GID_TWOFINGERTAP notification.
 
 OnGestureEventZoomCalled by the framework to handle BCGP_GID_ZOOM notification.
 
 ProcessGestureEventThis method should be called from WM_GESTURE message handler.