Click here to Skip to main content
13,552,950 members
Rate this:
Please Sign up or sign in to vote.
See more:

I need an expert opinion. I am docking several toolbar’s next to my Main toolbar on a tabbed view MDI.

Everything works OK:

   m_wndToolBar1.ShowPane(true, true, true);
m_wndToolBar2.ShowPane(false, false, false);
m_wndToolBar3.ShowPane(false, false, false);
m_wndToolBar4.ShowPane(false, false, false);
DockPane(&m_wndToolBar1, 0, 0);
DockPaneLeftOf(&m_wndToolBarMain, &m_wndToolBar1);

But the above lines do:
1) Only m_wndToolBarMain is visible
2) m_wndToolBar1 is docked below m_wndToolBarMain
3) m_wndToolBarMain is docked below m_wndToolBar1 i.e. they flip position
4) Then my requested look achieved with DockPaneLeftOf

So the problem is the step in 2 and 3 require two heights of toolbars in the menu pane. As the pane in momentarily (split second) fatter I get this flashing effect.

I did not have this in previous life with VS 2008, but with SP1 presents me with this challenge.

I tried every combination of DockPane but the above sequence does the business. Is there a function that freezes screen updating whilst the docking toolbars take finalposition or any other solution that achieves above docking more elegantly?
If you experienced this and solved this issue I would be humbled to hear your approach.

Many thanks…
Posted 4-Feb-13 9:39am
Updated 4-Feb-13 14:49pm

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

I solved this btw. Anyone is facing similar challanges anymore?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy |
Web04 | 2.8.180515.1 | Last Updated 6 Feb 2014
Copyright © CodeProject, 1999-2018
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100