CTabCtrl::SetCurSel

int SetCurSel( int nItem );

Return Value

Zero-based index of the previously selected tab if successful, otherwise  – 1.

Parameters

nItem

The zero-based index of the item to be selected.

Remarks

Selects a tab in a tab control. A tab control does not send a TCN_SELCHANGING or TCN_SELCHANGE notification message when a tab is selected using this function. These notifications are sent, using WM_NOTIFY, when the user clicks or uses the keyboard to change tabs.

CTabCtrl OverviewClass MembersHierarchy Chart

See Also   CTabCtrl::GetCurSel, CTabCtrl::GetCurFocus