![]()  | 
 
1 designerbars many commandbars? | 
 
    Post Reply  
   | 
  
| Author | |
   
   Ark42  
   
   Senior Member  
   Joined: 20 October 2003 Status: Offline Points: 291  | 
  
   
      Post Options
    
        Thanks(0)
      Quote   Reply
   
     Topic: 1 designerbars many commandbars?Posted: 12 May 2004 at 12:55am  | 
 
| 
   
    Does it make sense to use a single .xcb and LoadDesignerBars in the MDI parent frame? I have most of my toolbars around the main frame, but I also want a single toolbar on one special MDI child window and another on a special docking pane. I would prefer these to all be customizeable from the same "pool" of available commands, so what I did was something like: CXTPToolBar *pToolBar = pMainFrameCommandBars->GetToolBar(IDR_SOMETOOLBAR); pMainFrameCommandBars->DockCommandBar(pToolBar, CRect(0, 0, 100, 100), pMDIChildCommandBars->GetDockBar(xtpBarTop)); It works at first, but causes some quirks with customization not paint properly until I resize the window after I finish the customization dialog. If forcing a toolbar to dock into a dockbar that is part of a different instance of the commandbars is a bad idea that isn't going to work at all, let me know. Maybe there is a different approach I could take to get what I want. Edited by Ark42  | 
 |
![]()  | 
 |
   
   Oleg  
   
   Senior Member  
   Joined: 21 May 2003 Location: United States Status: Offline Points: 11234  | 
  
   
      Post Options
    
        Thanks(0)
      Quote   Reply
   
     Posted: 12 May 2004 at 1:53pm | 
 
| 
   
    
   it is bad idea.
    
   
   | 
 |
| 
   
     
     Oleg, Support Team 
   
  CODEJOCK SOFTWARE SOLUTIONS  | 
 |
![]()  | 
 |
    Post Reply  
   | 
  |
|       
  
  Tweet   	
    | 
 
| Forum Jump | Forum Permissions  ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum  |