开发者

Tab Control switch between Tab Pages using Win API

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜