共用方式為


CMFCOutlookBarTabCtrl::SetActiveTab

Sets the active tab. The active tab is the one that is open, with its contents visible.

virtual BOOL SetActiveTab(
   int iTab 
);

Parameters

  • [in] iTab
    The zero-based index of a tab to be opened.

Return Value

Nonzero if the specified tab has been opened successfully; otherwise 0.

Remarks

The visual effect of setting the active tab depends on whether you have enabled animation. For more information, see CMFCOutlookBarTabCtrl::EnableAnimation.

Requirements

Header: afxOutlookBarTabCtrl.h

See Also

Reference

CMFCOutlookBarTabCtrl Class

Hierarchy Chart