共用方式為


CMFCTasksPane::CollapseGroup

Collapses or expands a group.

BOOL CollapseGroup(
    CMFCTasksPaneTaskGroup* pGroup,
    BOOL bCollapse = TRUE
);
BOOL CollapseGroup(
    int nGroup,
    BOOL bCollapse = TRUE
);

Parameters

  • [in] pGroup
    Specifies the group to collapse.

  • [in] bCollapse
    TRUE to collapse the group; FALSE to expand the group.

  • [in] nGroup
    Specifies the zero-based index of the group to collapse in the internal list of groups.

Return Value

TRUE if the group collapses or expands successfully; otherwise, FALSE.

Remarks

A collapsed group shows only the group caption; the list of tasks is hidden.

Requirements

Header: afxTasksPane.h

See Also

Reference

CMFCTasksPane Class

Hierarchy Chart