Click here to Skip to main content
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 10:39am
Edited 4-Feb-13 15: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 Sergey Alexandrovich Kryukov 275
1 OriginalGriff 230
2 BillWoodruff 173
3 CPallini 155
4 Kamal Rocks 144
0 OriginalGriff 5,655
1 DamithSL 4,506
2 Maciej Los 3,997
3 Kornfeld Eliyahu Peter 3,480
4 Sergey Alexandrovich Kryukov 3,180


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