BCGControlBar Pro for MFC
CBCGPGanttConnection* CBCGPGanttChart::AddConnection ( CBCGPGanttItem pSourceItem,
CBCGPGanttItem pDestItem,
int  linkType 
)

Adds a new connection between two items.

Use this function to add a connection between two items.

The link type flag specifies how the items are connected. It can be one of the following predefined value:

  • BCGPGANTTLINK_START_TO_START
  • BCGPGANTTLINK_START_TO_FINISH
  • BCGPGANTTLINK_FINISH_TO_START
  • BCGPGANTTLINK_FINISH_TO_FINISH
Parameters
pSourceItemA pointer to a source item.
pDestItemA pointer to a destination item.
linkTypeSpecifies the link type.