CTabCtrl::SetCurSel

This method 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 method. These notifications are sent, using WM_NOTIFY, when the user clicks or uses the keyboard to change tabs.

At a Glance

Header file: Afxcoll.h
Platforms: H/PC 2.0, Palm-size PC, H/PC Pro
Windows CE versions: 1.0 and later
Complete documentation: Visual C++ documentation

Syntax

int SetCurSel( int nItem );

See Also

CTabCtrl::GetCurSel, CTabCtrl::GetCurFocus