如何动态添加标签到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