Solved

CToolBar resizing issues

Posted on 1998-10-19
4
291 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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

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 …
Introduction: Finishing the grid – keyboard support for arrow keys to manoeuvre, entering the numbers.  The PreTranslateMessage function is to be used to intercept and respond to keyboard events. Continuing from the fourth article about sudoku. …
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.
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…

690 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