BCGControlBar Pro for MFC
BOOL CBCGPTasksPane::ShowTask ( int  nGroup,
int  nTask,
BOOL  bShow = TRUE,
BOOL  bRedraw = TRUE 
)

Shows or hides a task.

Returns
TRUE, if the function succeeds; FALSE, if the specified group index or task index is out of range.

Use this function to show or hide a task. You should use the group index obtained from AddGroup() and task index obtained from AddTask(), AddLabel(), AddMRUFilesList() or AddWindow().

You can show or hide a task by its commandID calling on ShowTaskByCmdId().

Parameters
nGroupSpecifies the zero-based index of a group the task to be shown belongs to.
nTaskSpecifies the zero-based index of a task to be shown or hidden.
bShowIf TRUE, the task will be shown; if FALSE, the task will be hidden.
bRedrawIf TRUE, the task pane will be redrawn. Set this flag to FALSE in order to optimize subsequent operations.