• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 302
  • Last Modified:

CToolBar resizing issues

I have created a toolbar resource in VC++ 5.0. This was a toolbar across the top of my application, but now I want to move it to be down the right hand side of the window. I don't want to actually put it flush with the right side, I would like to leave a little space.
  I tried getting the CToolBarCtrl and doing a movewindow. This works, only the buttons don't change to be stacked on top of one another going down the side.
  How can I get this functionality?
(I don't want a docking one, I want it fixed)
Thanks.
0
Beatachon
Asked:
Beatachon
  • 3
1 Solution
 
BridgeCommented:
RecalcLayout()
( just a guess )

0
 
danny_pavCommented:
in the OnCreate of you MainFrame chnage the alignment when you create it.  instead of using CBRS_ALIGN_TOP use CBRS_ALIGN_RIGHT
0
 
BridgeCommented:
CToolBarCtrl::SetRows();
0
 
BridgeCommented:
CToolBarCtrl::SetRows();
0

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now