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.
int SetCurSel( int nItem );
Header File | Afxcoll.h |
Platforms | |
Versions | 1.0 and later |
Complete documentation | Visual C++ documentation |
CTabCtrl Overview, CTabCtrl Member Functions, Control Classes, CTabCtrl::GetCurSel, CTabCtrl::GetCurFocus