像本机 Windows 应用程序中的 FireFox 中的选项卡控件
我想为我的应用程序启用选项卡。到目前为止,我似乎可以使用选项卡控件。但它的问题是,它在客户区域周围创建了边界。我想要的更像是一个 FireFox 选项卡控件,它只在应用程序中占用一行,并且不会在客户区域周围创建任何框架。
有谁知道默认控件是否可以?
我正在使用 MFC,但我希望这不会改变太多事情。
I would like to enable tabbing for my application. And so far it seems I could use a tab control. The problem with it is, though, that it creates a border around the client area. What I want, is more like a FireFox tab control, that only takes up a row in the application and doesn't create any frames around client area.
Does anyone know if it is possible with the default control?
I'm using MFC, but that shouldn't change things much I hope.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我很确定选项卡控件由两部分组成 - 选项卡标题和选项卡页。所以您应该只能使用选项卡标题。这将需要更多的工作,但我认为你可以得到你想要的。
看看 CTabCtrl 和 CHeaderCtrl - 它们能做到吗?我从未定制过它们,但这似乎是可能的。
I'm pretty sure the tab control consists of two parts - the tab headers and the tab page. So you should be able to use the tab header only. It will take more work, but I think you can get what you want.
Look at CTabCtrl and CHeaderCtrl - will those do it? I've never customized them, but it seems possible.
还有一个 CPropertySheet 是一个很好的控件。但到目前为止,禁用和改变某些东西似乎根本不可能。除了完整的所有者绘制路径之外,没有解决该问题的方法。
There is also a CPropertySheet that's a good control. But so far it seems disabling and changing some things is simply impossible. No solution for the problem except full ownerdraw path.