BCGControlBar Pro for MFC
CBCGPChartCtrl

Detailed Description

The CBCGPChartCtrl class implements a Windows control that encapsulates a Chart visual object, which covers the control's client area. You can use this control to quickly place a Chart on a dialog, on a docking control bar etc.

To take advantage of CBCGPChartCtrl perform the following steps:

Copy
// Declare a member variable of CBCGPChartCtrl type:
CBCGPChartCtrl m_wndChart;
// Call CBCGPBaseVisualCtrl::Create (CBCGPBaseVisualCtrl is the base class):
m_wndChart.Create(rect, pParentWnd, nID);
// If you need to implement a custom Chart visual object call:
m_wndChart.CreateCustomChart(RUNTIME_CLASS(CMyChart));
// Setup and use the Chart visual object with the GetChart accessor:
CBCGPChartVisualObject* pChart = m_wndChart.GetChart();
pChart->SetChartType(CBCGPChartLine);
pChart->AddChartData(10);
pChart->AddChartData(17);
+ Inheritance diagram for CBCGPChartCtrl:

Public Member Functions

 CreateCustomChartCreates custom Chart visual object.
 
 GetChartReturns a pointer to underlined Chart visual object.
 
- Public Member Functions inherited from CBCGPBaseVisualCtrl
 CreateCreates a Windows control.
 
 CreatePopupCreates a popup window
 
 EnableInfoTipEnables the information tip associated with this control.
 
 EnableTooltipEnables tooltips
 
 GetGraphicsManagerGets graphics manager associated with control.
 
 GetPrintOptionsGets control printing options.
 
 IsInfoTipEnabledTells whether the information tip is enabled.
 
 IsTooltipEnabledTells whether the visual control tooltip support is enabled.
 
 SetPrintOptionsSets control printing options.
 

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.
 
 ProcessGestureEventThis method should be called from WM_GESTURE message handler.