Click here to Skip to main content
11,584,556 members (64,288 online)
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C++ MFC
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 4-Feb-13 9:39am
Edited 4-Feb-13 14:49pm
v2

1 solution

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

Solution 1

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

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

  Print Answers RSS
0 OriginalGriff 430
1 Sergey Alexandrovich Kryukov 367
2 Dave Kreskowiak 260
3 Richard Deeming 220
4 virusstorm 194
0 OriginalGriff 1,703
1 Sergey Alexandrovich Kryukov 1,267
2 Abhinav S 711
3 Dave Kreskowiak 687
4 Suvendu Shekhar Giri 568


Advertise | Privacy | Mobile
Web03 | 2.8.150707.1 | Last Updated 6 Feb 2014
Copyright © CodeProject, 1999-2015
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