BCGControlBar Pro for MFC
BOOL CBCGPTasksPane::CollapseGroup ( CBCGPTasksGroup pGroup,
BOOL  bCollapse = TRUE 
)

Programmatically collapses a group.

Returns
Nonzero if succeed; otherwise 0.

Use this function to programmatically collapse the groups. A collapsed group shows only the group caption, the list of tasks is hidden.

Parameters
pGroupPointer the group to be collapsed.
bCollapseSpecifies whether tasks group can be collapsed or not.