Click here to Skip to main content
15,891,908 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

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);
DockPane(&m_wndToolBarMain);
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
Updated 4-Feb-13 14:49pm
v2

1 solution

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

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900