?
Solved

To move toolbar in left..

Posted on 2000-04-24
2
Medium Priority
?
628 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 150 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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

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. …
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.
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…
Suggested Courses

765 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