Export (0) Print
Expand All


Selects a tab in a tab control.

int SetCurSel( 
  int nItem  


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

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

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.

Header: afxcmn.h

© 2015 Microsoft