我可以获取之前选择的选项卡索引吗
Can I get the tab index that was selected before
TCM_SETCURSEL message select a new tab in the control and returns the index of the previously selected one. Can I get the index of the previously selected tab index after a new one is set? for example, use jump from tab 3 (current) to 4 (new selected tab index), which fires TCN_SELCHANGE 但是我可以使用 WINAPI 以某种方式获取以前的索引,即 3 吗?
您可以通过处理 TCN_SELCHANGING
message and calling TabCtrl_GetCurSel
.
在更改选项卡之前获取 table 索引
TCM_SETCURSEL message select a new tab in the control and returns the index of the previously selected one. Can I get the index of the previously selected tab index after a new one is set? for example, use jump from tab 3 (current) to 4 (new selected tab index), which fires TCN_SELCHANGE 但是我可以使用 WINAPI 以某种方式获取以前的索引,即 3 吗?
您可以通过处理 TCN_SELCHANGING
message and calling TabCtrl_GetCurSel
.