可停靠的CMFCOutlookbar [英] Dockable CMFCOutlookbar

查看:447
本文介绍了可停靠的CMFCOutlookbar的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


在此链接中,给出了dockbale outlookbar的示例。此示例使用CControlbar实现。


https://www.codeproject.com/Articles/10556/A-dockable-pinnable-and-skinnable-OutlookBar


在我的应用程序中,我使用选项卡式文档和CMFCToolbar,因此控制栏不受支持。


我想使用CMFCToolbar实现可停靠的outlookbar或者使用CPane?


我可以获得任何样本吗?


我引用了Visual中给出的应用程序 OutlookDemo C ++ 2008 Feature Pack的示例,其中outlookbar不可停靠。


谢谢。


解决方案

您好sgrm123,


感谢您在此处发帖。


>>我想要使用CMFCToolbar或使用CPane实现可停靠的outlookbar?


我能获得任何样本吗?


通常,CPane对象不直接实例化。如果您需要具有停靠功能的窗格,请从CDockablePane派生您的对象。如果需要工具栏功能,请从CMFCToolBar派生对象。如果你想使用CMFCToolbar,
请致电
CBasePane :: EnableDocking
指定对接样式。对于CDockablePane,您可以通过调用

CBasePane来设置窗格对象: :EnableDocking

CBasePane :: DockPane
或< a href ="https://msdn.microsoft.com/en-us/library/bb984433.aspx#cdockablepane__attachtotabwnd">
CDockablePane :: AttachToTabWnd 。


这是一份供您参考的文件。


https://www.codeproject.com/articles/493218/understanding-cdockablepane#_Splitter_and_Toolbar_inside%20CDockab


希望这可以为您提供帮助。


最好的问候,


Sera Yu




Hi,

In this link, a sample for dockbale outlookbar is given. This sample is implemented using CControlbar.

https://www.codeproject.com/Articles/10556/A-dockable-pinnable-and-skinnable-OutlookBar

In my application I am using tabbed documents and CMFCToolbar so controlbar is not getting supported.

I want to implement dockable outlookbar using CMFCToolbar or using CPane?

Can I get any samples for that?

I referred the application OutlookDemo given in the Visual C++ 2008 Feature Pack's samples, in this the outlookbar is not dockable.

Thanks.

解决方案

Hi sgrm123,

thanks for posting here.

>>I want to implement dockable outlookbar using CMFCToolbar or using CPane?

Can I get any samples for that?

Typically, CPane objects are not instantiated directly. If you require a pane that has docking functionality, derive your object from CDockablePane. If you require toolbar functionality, derive your object from CMFCToolBar. If you want to use CMFCToolbar, Call CBasePane::EnableDocking to specify the docking style. For CDockablePane, you could set up the pane object by calling CBasePane::EnableDocking, CBasePane::DockPane, or CDockablePane::AttachToTabWnd.

Here is a document for you as a reference.

https://www.codeproject.com/articles/493218/understanding-cdockablepane#_Splitter_and_Toolbar_inside%20CDockab

Hope this could be help of you.

Best Regards,

Sera Yu


这篇关于可停靠的CMFCOutlookbar的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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