如何更改选项卡式窗格中选项卡的名称

问题描述:





我有一个由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.