From: Victor on
Did you create each of the toolbars with the unique ID?

Victor


"rshoba(a)gmail.com" wrote:

> Hi,
>
> I have created a main toolbar, and two more toolbars. All three are
> aligned at TOP, one below the other. I use DockControlBar to dock
> them.
>
> m_ToolBar1.EnableDocking(CBRS_ALIGN_TOP|CBRS_ALIGN_BOTTOM);
> m_ToolBar2.EnableDocking(CBRS_ALIGN_TOP|CBRS_ALIGN_BOTTOM);
> m_ToolBar3.EnableDocking(CBRS_ALIGN_TOP|CBRS_ALIGN_BOTTOM);
>
> EnableDocking(CBRS_ALIGN_ANY);
>
> DockControlBar(&m_ToolBar1);
> DockControlBar(&m_ToolBar2);
> DockControlBar(&m_ToolBar3);
>
> It was all fine till this point. The problem comes next.
>
> Now, I need to have them all in a single line. It should look
> something like this.
>
> ----------------------------------------------------------------------------------------------------------------------------------------------------
> |
> m_ToolBar1|
> |m_ToolBar2|m_ToolBar3|
> -----------------------------------------------------------------------------------------------------------------------------------------------------
>
> I tried a lot to bring the toolbars in these positions, but in vain. I
> googled a lot and found DockControlBarLeftOf ()sample present in MSDN.
> But that too is not serving my purpose, as I need to dock the second
> and third toolbars in the top right corner of the First toolbar and
> most importantly, the second and third toolbars should be a dockable
> ones. So, just cannot use DockControlBarLeftOf().
>
> I would extremly appreciate it, if someone could shed some light on
> it, as I tried many many possiblities and found nothing working.
>