Solved

To move toolbar in left..

Posted on 2000-04-24
2
625 Views
Last Modified: 2013-11-20
Hello.

 When single document type project made, the default
 toolbar placed top left.(below menubar).

 I want to place it left side of window verically. It has
 docking option, so user can move it.
 but is there any method to place toolbar verically from
 starting of program?
0
Comment
Question by:worker018
[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
2 Comments
 
LVL 1

Accepted Solution

by:
Dhrubajyoti earned 50 total points
ID: 2746162
if you want to change the default position you have the change the code in when you are creating the tool bar.
you will find the following line in your frame window oncreate function if you have used app wizerd.
in place of CBRS_TOP you give the alignment you want (CBRS_LEFT   )hope this will work .

///////////////
      if (!m_wndToolBar.CreateEx(this, TBSTYLE_FLAT, WS_CHILD | WS_VISIBLE | CBRS_TOP
            | CBRS_GRIPPER | CBRS_TOOLTIPS | CBRS_FLYBY | CBRS_SIZE_DYNAMIC) ||
            !m_wndToolBar.LoadToolBar(IDR_SURVEYOR))
      {
            TRACE0("Failed to create toolbar\n");
            return -1;      // fail to create
      }
//////////////
CBRS_TOP   Control bar is at the top of the frame window.


CBRS_BOTTOM   Control bar is at the bottom of the frame window.


CBRS_NOALIGN   Control bar is not repositioned when the parent is resized.


CBRS_LEFT   Control bar is at the left of the frame window.


CBRS_RIGHT   Control bar is at the right of the frame window.
0
 

Author Comment

by:worker018
ID: 2746292

 Thanks for your answer.
0

Featured Post

Independent Software Vendors: 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
fizzArray  challenge 1 109
wait notify demo infinite loop 3 136
ShiftLeft challenge 21 89
Problem to App source 6 93
Introduction: Dialogs (1) modal - maintaining the database. Continuing from the ninth article about sudoku.   You might have heard of modal and modeless dialogs.  Here with this Sudoku application will we use one of each type: a modal dialog …
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
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…

733 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