Solved

To move toolbar in left..

Posted on 2000-04-24
2
626 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

Introduction: Displaying information on the statusbar.   Continuing from the third article about sudoku.   Open the project in visual studio. Status bar – let’s display the timestamp there.  We need to get the timestamp from the document s…
Introduction: Hints for the grid button.  Nested classes, templated collections.  Squash that darned bug! Continuing from the sixth article about sudoku.   Open the project in visual studio. First we will finish with the SUD_SETVALUE messa…
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.
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…

717 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