共用方式為


CMFCTasksPane::ShowTaskByCmdId

Shows or hides a task based on its command ID.

BOOL ShowTaskByCmdId(
    UINT uiCommandID,
    BOOL bShow = TRUE,
    BOOL bRedraw = TRUE
);

Parameters

  • [in] uiCommandID
    Specifies the command ID 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 a task with the specified command ID does not exist.

Remarks

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

Requirements

Header: afxTasksPane.h

See Also

Reference

CMFCTasksPane Class

Hierarchy Chart