如何动态添加标签到CSplitterWnd窗口? [英] How to add tabs dynamically to CSplitterWnd window?

查看:79
本文介绍了如何动态添加标签到CSplitterWnd窗口?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

推荐答案

Hi sampathj,

Hi sampathj,

感谢您在此发帖。

>>任何人都可以帮我了解如何在我的CSplitterWndEx窗口中添加标签。

对于这种情况,也许你可以实现所有者绘制的选项卡控件。如果选项卡控件具有TCS_OWNERDRAWFIXED样式,则父窗口必须通过处理WM_DRAWITEM消息来绘制选项卡。每当选项卡需要为
绘制时,选项卡控件就会发送此消息。

For this case, maybe you could implement an owner drawn tab control. If a tab control has the TCS_OWNERDRAWFIXED style, the parent window must paint tabs by processing the WM_DRAWITEM message. The tab control sends this message whenever a tab needs to be painted.

有关详细信息,请参阅下面的文档和示例。

For more information, you could refer to the document and sample below.

https://msdn.microsoft.com/library/windows/desktop/bb760550#owner_drawn_tabs

https://www.codeguru.com/ cpp / controls / controls / tabcontrols / article.php / c2237 / Implementing-an-owner-drawn-Tab-Control.htm

希望这对您有所帮助。

Hope this could be help of you.

最好的问候,

Baron Bi

Baron Bi


这篇关于如何动态添加标签到CSplitterWnd窗口?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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