共用方式為


CMFCTasksPane::SetGroupTextColor

Sets the text color for a group caption.

BOOL SetGroupTextColor(
    int nGroup,
    COLORREF color,
    COLORREF colorHot = (COLORREF)-1
);

Parameters

  • [in] nGroup
    Specifies the zero-based index of the group.

  • [in] color
    Specifies the text color.

  • [in] colorHot
    Specifies the text color for the highlighted group. If -1, the default highlight color is used.

Return Value

TRUE if the group text color was successfully changed; otherwise, FALSE.

Requirements

Header: afxTasksPane.h

See Also

Reference

CMFCTasksPane Class

Hierarchy Chart