如何更改选项卡式窗格中选项卡的名称 [英] How to change the name of a tab in a tabbed pane

查看:147
本文介绍了如何更改选项卡式窗格中选项卡的名称的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





我有一个由Visual Studio 2010生成的项目,有树视图。



它们是两个选项卡式窗格。



我想更改选项卡式窗格文本和窗格标题。



我尝试过使用IDS_CLASS_VIEW,但它只更改了选项卡式窗格上的工具提示。



如何更改选项卡式窗格和标题文本?



谢谢,



克劳德

Hi,

I have a project generated by Visual Studio 2010 with a tree view .

They are two tabbed pane.

I want to change the tabbed pane text and the title of the pane over.

I have tried with IDS_CLASS_VIEW, but it changes only the tooltips over the tabbed pane.

How can I change the tabbed pane and title text?

Thanks,

Claude

推荐答案

如果选项卡控件的内容被定义为对话框资源,请使用Visual Studio对话框编辑器进行更改。



如果要以编程方式更改选项卡的文本,请阅读在CTabCtrl上。



http:/ /msdn.microsoft.com/en-us/library/essk9hbw.aspx [ ^ ]



将CTabCtrl绑定(或附加)到实际的HWND。使用GetItem / SetItem更改选项卡内容。
If the tab control's content is defined as a dialog resource, use the Visual Studio dialog editor to change it.

If you want to programmatically change the tab's text, read up on the CTabCtrl.

http://msdn.microsoft.com/en-us/library/essk9hbw.aspx[^]

Bind (or Attach) a CTabCtrl to the actual HWND. Use GetItem/SetItem to change the tab content.


这篇关于如何更改选项卡式窗格中选项卡的名称的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆