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
Requirement | Value |
---|---|
Minimum supported client |
Windows Vista [desktop apps only] |
Minimum supported server |
Windows Server 2003 [desktop apps only] |
Header |
|
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for