共用方式為


CMFCVisualManager::OnDrawTasksGroupCaption

The framework calls this method when it draws the caption for a CMFCTasksPaneTaskGroup object.

virtual void OnDrawTasksGroupCaption(
   CDC* pDC,
   CMFCTasksPaneTaskGroup* pGroup,
   BOOL bIsHighlighted = FALSE,
   BOOL bIsSelected = FALSE,
   BOOL bCanCollapse = FALSE
);

Parameters

  • [in] pDC
    A pointer to a device context.

  • [in] pGroup
    A pointer to a CMFCTasksPaneTaskGroup object. The framework draws the caption for this group.

  • [in] bIsHighlighted
    A Boolean parameter that indicates whether the group is highlighted.

  • [in] bIsSelected
    A Boolean parameter that indicates whether the group is currently selected.

  • [in] bCanCollapse
    A Boolean parameter that indicates whether the group can be collapsed.

Remarks

The task groups appear on the CMFCTasksPane object.

Override this method in a derived class to customize the caption for a CMFCTasksPaneTaskGroup.

Requirements

Header: afxvisualmanager.h

See Also

Reference

CMFCVisualManager Class

Hierarchy Chart

CMFCTasksPaneTaskGroup Class