Solved

CToolBar resizing issues

Posted on 1998-10-19
4
276 Views
Last Modified: 2013-11-20
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
Comment
Question by:Beatachon
  • 3
4 Comments
 
LVL 1

Expert Comment

by:Bridge
Comment Utility
RecalcLayout()
( just a guess )

0
 
LVL 3

Accepted Solution

by:
danny_pav earned 100 total points
Comment Utility
in the OnCreate of you MainFrame chnage the alignment when you create it.  instead of using CBRS_ALIGN_TOP use CBRS_ALIGN_RIGHT
0
 
LVL 1

Expert Comment

by:Bridge
Comment Utility
CToolBarCtrl::SetRows();
0
 
LVL 1

Expert Comment

by:Bridge
Comment Utility
CToolBarCtrl::SetRows();
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
repeateFront java challenge 31 85
List out all word 7 219
WinWaitActive parameters 12 31
mapBully challenge 6 86
Introduction: Hints for the grid button.  Nested classes, templated collections.  Squash that darned bug! Continuing from the sixth article about sudoku.   Open the project in visual studio. First we will finish with the SUD_SETVALUE messa…
Introduction: The undo support, implementing a stack. Continuing from the eigth article about sudoku.   We need a mechanism to keep track of the digits entered so as to implement an undo mechanism.  This should be a ‘Last In First Out’ collec…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

728 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now