Share via


CMFCTasksPane::ShowTask

Shows or hides a task.

BOOL ShowTask(
    int nGroup,
    int nTask,
    BOOL bShow = TRUE,
    BOOL bRedraw = TRUE
);

Parameters

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

  • [in] nTask
    Specifies the zero-based index of the task to show or hide.

  • [in] bShow
    TRUE to show the task; FALSE to hide the task.

  • [in] bRedraw
    TRUE to redraw the task pane; otherwise, FALSE.

Return Value

TRUE if the task was successfully shown or hidden; FALSE if the specified group or task does not exist.

Remarks

Use CMFCTasksPane::ShowTaskByCmdId to show or hide a task based on its command ID.

Requirements

Header: afxTasksPane.h

See Also

Reference

CMFCTasksPane Class

Hierarchy Chart