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…