TCM_SETCURSEL message

Selects a tab in a tab control. You can send this message explicitly or by using the TabCtrl_SetCurSel macro.

Parameters

wParam

Index of the tab to select.

lParam

Must be zero.

Return value

Returns the index of the previously selected tab if successful, or -1 otherwise.

Remarks

A tab control does not send a TCN_SELCHANGING or TCN_SELCHANGE notification code when a tab is selected using this message.

Requirements

Minimum supported client
Windows Vista [desktop apps only]
Minimum supported server
Windows Server 2003 [desktop apps only]
Header
Commctrl.h