Partager via


CBaseTabbedPane::ShowTab

Shows or hides a tab.

virtual BOOL ShowTab(
    CWnd* pBar,
    BOOL bShow,
    BOOL bDelay,
    BOOL bActivate
);

Parameters

  • [in] pBar
    A pointer to the pane to show or hide.

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

  • [in] bDelay
    TRUE to delay the adjustment of the tab layout; otherwise, FALSE.

  • [in] bActivate
    TRUE to make the tab the active tab; otherwise, FALSE.

Return Value

TRUE if the tab was either shown or hidden successfully; otherwise, FALSE.

Remarks

When you call this method, a pane is either shown or hidden, depending on the value of the bShow parameter. If you hide a tab and it is the last visible tab in the underlying tab window, the tabbed pane is hidden. If you show a tab when there were previously no tabs visible, the tabbed pane is shown.

Requirements

Header: afxBaseTabbedPane.h

See Also

Reference

CBaseTabbedPane Class

Hierarchy Chart