Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

CToolBar resizing issues

Posted on 1998-10-19
4
Medium Priority
?
300 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
ID: 1323530
RecalcLayout()
( just a guess )

0
 
LVL 3

Accepted Solution

by:
danny_pav earned 400 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

Technology Partners: 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

Introduction: Database storage, where is the exe actually on the disc? Playing a game selected randomly (how to generate random numbers).  Error trapping with try..catch to help the code run even if something goes wrong. Continuing from the seve…
In this post we will learn different types of Android Layout and some basics of an Android App.
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.
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…

886 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