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.
Kommer snart: Under hela 2024 kommer vi att fasa ut GitHub-problem som feedbackmekanism för innehåll och ersätta det med ett nytt feedbacksystem. Mer information finns i:Skicka och visa feedback för