Share via


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

Reference

CTabCtrl Class

Hierarchy Chart

CTabCtrl::SetCurSel

CTabCtrl::GetCurFocus

Other Resources

CTabCtrl Members