BCGControlBar Pro for MFC
BOOL CBCGPTasksPane::ShowTaskByCmdId ( UINT  uiCommandID,
BOOL  bShow = TRUE,
BOOL  bRedraw = TRUE 
)

Looks for a task by its command ID and shows or hides it.

Returns
TRUE, if the function succeeds; FALSE, if the task with the specified command ID does not exist.

Use this function to show or hide a task by specifying its command ID.

You can show or hide a task by its location calling on ShowTask().

Parameters
uiCommandIDSpecifies the command ID 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.