Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - 1 designerbars many commandbars?
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

1 designerbars many commandbars?

 Post Reply Post Reply
Author
Message
Ark42 View Drop Down
Senior Member
Senior Member
Avatar

Joined: 20 October 2003
Status: Offline
Points: 291
Post Options Post Options   Thanks (0) Thanks(0)   Quote Ark42 Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 12 May 2004 at 1:53pm
it is bad idea.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.188 seconds.