共用方式為


CMFCTasksPane::SetTaskName

Sets the name for a task.

BOOL SetTaskName(
    int nGroup,
    int nTask,
    LPCTSTR lpszTaskName
);

Parameters

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

  • [in] nTask
    Specifies the zero-based index of the task.

  • [in] lpszTaskName
    Specifies the task name.

Return Value

TRUE if the task name was successfully set; otherwise, FALSE.

Requirements

Header: afxTasksPane.h

See Also

Reference

CMFCTasksPane Class

Hierarchy Chart