Solved

To move toolbar in left..

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

NAS Cloud Backup Strategies

This article explains backup scenarios when using network storage. We review the so-called “3-2-1 strategy” and summarize the methods you can use to send NAS data to the cloud

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
method notes when mouse over in eclipse 5 87
wait notify demo infinite loop 3 114
twoTwo  challenge 35 104
Message not shown 5 51
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…
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
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.

832 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