Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - Multiple Toolbars on Top row by default
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Multiple Toolbars on Top row by default

 Post Reply Post Reply
Author
Message
Warren View Drop Down
Groupie
Groupie
Avatar

Joined: 23 February 2005
Status: Offline
Points: 64
Post Options Post Options   Thanks (0) Thanks(0)   Quote Warren Quote  Post ReplyReply Direct Link To This Post Topic: Multiple Toolbars on Top row by default
    Posted: 07 February 2006 at 10:37am

I have 4 fairly short toolbars (just plain-vanilla CXTPToolbar toolbars). There is MORE than enough room to fit them all across one row on the screen (I separate them into separate toolbars, for logical/layout reasons) .

By default, when the application initially starts up, the toolbars stack vertically, and the arrangement I get is:
1
2
3
4
(with tons of space to the right of all of the toolbars)

The arrangement I want is:
1 2 3 4

The user can drag the toolbars into place, but it gives an ugly first impression. How do I do this programmatically?

 

 

Back to Top
SuperMario View Drop Down
Senior Member
Senior Member
Avatar

Joined: 14 February 2004
Status: Offline
Points: 18057
Post Options Post Options   Thanks (0) Thanks(0)   Quote SuperMario Quote  Post ReplyReply Direct Link To This Post Posted: 07 February 2006 at 11:28am
    //---------------------------------------------------------- -------------
    // Summary:
    //     This member function will re-dock a toolbar specified by 'pBarToDock'
    //     to the right of a newly docked toolbar specified by 'pBarOnLeft'.
    // Parameters:
    //     pBarToDock - A CXTPToolBar pointer to the toolbar to be docked.
    //     pBarOnLeft - A CXTPToolBar pointer to the already docked toolbar.
     //---------------------------------------------------------- -------------
    void DockRightOf(CXTPToolBar* pBarToDock, CXTPToolBar* pBarOnLeft)


Example:
DockRightOf(pFormatBar, pStandardBar);
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.047 seconds.