Share via


CMFCTabCtrl::SetActiveTab

Activates a tab.

virtual BOOL SetActiveTab(
   int iTab 
);

Parameters

  • [in] iTab
    Specifies the zero-based index of the tab to activate.

Return Value

TRUE if the specified tab was made active; FALSE if the specified iTab parameter value is invalid.

Remarks

This method does not send the AFX_WM_CHANGE_ACTIVE_TAB notification to the parent window of the tab control.

The SetActiveTab method automatically calls the CMFCTabCtrl::HideActiveWindowHorzScrollBar method to prevent the screen from blinking.

Requirements

Header: afxtabctrl.h

See Also

Reference

CMFCTabCtrl Class

Hierarchy Chart