TCM_SETCURSEL

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

At a Glance

Header file: Commctrl.h
Windows CE versions: 1.0 and later
Related macro: TabCtrl_SetCurSel

Syntax

  1. TCM_SETCURSEL wParam = (WPARAM)(int) iItem; lParam = 0;

Parameters

iItem

Index of the tab to select.

Return Values

The index of the previously selected tab indicates success. –1 indicates otherwise.

See Also

TCN_SELCHANGE, TCN_SELCHANGING