开发者

Tab Control switch between Tab Pages using Win API

开发者 https://www.devze.com 2023-04-01 06:22 出处:网络
I wonder if th开发者_JS百科ere\'s an easy way of switching between Tab pages of the tab control using Win API w/out using screen coordinates (a sample in c# would be highly appreciated)?

I wonder if th开发者_JS百科ere's an easy way of switching between Tab pages of the tab control using Win API w/out using screen coordinates (a sample in c# would be highly appreciated)?

thanks.


It seems like the SelectedTab property is what you want. Here's sample code.


SendMessage(hWndTabControl, TCM_SETCURFOCUS, tabIndex, 0);

0

精彩评论

暂无评论...
验证码 换一张
取 消