Compartir a través de


CMFCBaseTabCtrl::ShowTab

Shows or hides the specified tab.

virtual BOOL ShowTab(
   int iTab,
   BOOL bShow = TRUE,
   BOOL bRecalcLayout = TRUE,
   BOOL bActivate = FALSE
);

Parameters

  • [in] iTab
    The index of the tab that ShowTab will show or hide.

  • [in] bShow
    A Boolean parameter that indicates whether to show the tab.

  • [in] bRecalcLayout
    A Boolean parameter that indicates whether to immediately recalculate the window layout.

  • [in] bActivate
    A Boolean parameter that indicates whether to select the tab specified by iTab.

Return Value

Nonzero if successful; otherwise 0.

Remarks

The parameter bActivate only applies if bShow is TRUE. If bActivate is TRUE and if ShowTab is successful, ShowTab will send the message AFX_WM_CHANGE_ACTIVE_TAB to the parent of the tab window.

Requirements

Header: afxbasetabctrl.h

See Also

Reference

CMFCBaseTabCtrl Class

Hierarchy Chart