CTabCtrl::SetCurSel

Call this member function to select 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.

Syntax

int SetCurSel( int nItem );

At a Glance

Header File Afxcoll.h
Platforms
Versions 1.0 and later
Complete documentation Visual C++ documentation

See Also

CTabCtrl Overview, CTabCtrl Member Functions, Control Classes, CTabCtrl::GetCurSel, CTabCtrl::GetCurFocus