BCGControlBar Pro for MFC
CBCGPGanttView

Detailed Description

The CBCGPGanttView class simplifies use of the Gantt Control with MFC's document-view architecture.

The Gantt Control object is embedded into the CBCGPGanttView.

The access to the Gantt Control should be obtained through CBCGPGanttView::GetControl.

If you have to process any notifications sent by the Gantt Chart control, just derive a class from the CBCGPGanttView class and the override some or all virtual methods:

Copy
virtual BOOL OnChartClick(UINT /*nFlags*/, CPoint /*point*/)
{
return FALSE;
}
virtual BOOL OnChartClickItem(UINT /*nFlags*/, CBCGPGanttItem* /*pItem*/)
{
return FALSE;
}
virtual BOOL OnChartClickHeader(UINT /*nFlags*/, CPoint /*point*/)
{
return FALSE;
}
virtual BOOL OnChartDoubleClick(UINT /*nFlags*/, CPoint /*point*/)
{
return FALSE;
}
virtual BOOL OnChartDoubleClickItem(UINT /*nFlags*/, CBCGPGanttItem* /*pItem*/)
{
return FALSE;
}
virtual BOOL OnChartDoubleClickHeader(UINT /*nFlags*/, CPoint /*point*/)
{
return FALSE;
}
virtual BOOL OnChartItemMoving(BCGP_GANTT_ITEM_DRAGDROP* /*pDragDrop*/)
{
return TRUE;
}
virtual void OnChartItemChanged(CBCGPGanttItem* /*pItem*/, DWORD /*dwAction*/) {}
virtual BOOL OnChartScaleChanging(BOOL /*bIncrease*/)
{
return FALSE;
}
virtual void OnChartScaleChanged() {}
See also
CBCGPGanttControl

Inherits CView.

Public Member Functions

 GetChartReturns a pointer to Gantt Chart.
 
 GetControlReturns a reference to Gantt Control.
 
 GetGridReturns a pointer to Grid Control.
 
 GetSplitterReturns a pointer to splitter control.