共用方式為


CTabCtrl::GetCurSel

Retrieves the currently selected tab in a tab control.

int GetCurSel( ) const;

Return Value

Zero-based index of the selected tab if successful or – 1 if no tab is selected.

Requirements

Header: afxcmn.h

See Also

Concepts

CTabCtrl Class

CTabCtrl Members

Hierarchy Chart

CTabCtrl::SetCurSel

CTabCtrl::GetCurFocus