Solved

CToolBar resizing issues

Posted on 1998-10-19
4
289 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
4 Comments
 
LVL 1

Expert Comment

by:Bridge
ID: 1323530
RecalcLayout()
( just a guess )

0
 
LVL 3

Accepted Solution

by:
danny_pav earned 100 total points
ID: 1323531
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
ID: 1323532
CToolBarCtrl::SetRows();
0
 
LVL 1

Expert Comment

by:Bridge
ID: 1323533
CToolBarCtrl::SetRows();
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Decoding 32 bit binary streams 6 58
building a service to accessed via telnet client, want colors ? 4 106
Unix Command -- Challenging  question 7 105
Adjust the codes 3 62
Here is how to use MFC's automatic Radio Button handling in your dialog boxes and forms.  Beginner programmers usually start with a OnClick handler for each radio button and that's just not the right way to go.  MFC has a very cool system for handli…
In this article, I'll describe -- and show pictures of -- some of the significant additions that have been made available to programmers in the MFC Feature Pack for Visual C++ 2008.  These same feature are in the MFC libraries that come with Visual …
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.
Are you ready to implement Active Directory best practices without reading 300+ pages? You're in luck. In this webinar hosted by Skyport Systems, you gain insight into Microsoft's latest comprehensive guide, with tips on the best and easiest way…

737 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