TCM_SETCURSEL
This message selects a tab in a tab control. You can send this message explicitly or by using the TabCtrl_SetCurSel macro.
TCM_SETCURSEL wParam = (WPARAM)(int) iItem;
lParam = 0;
Parameters
- iItem
Index of the tab to select. - lParam
Not used.
Return Values
The index of the previously selected tab indicates success. –1 indicates otherwise.
Requirements
OS Versions: Windows CE 1.0 and later.
Header: Commctrl.h.
See Also
TCN_SELCHANGE | TCN_SELCHANGING
Last updated on Wednesday, April 13, 2005
© 2005 Microsoft Corporation. All rights reserved.