Solved

To move toolbar in left..

Posted on 2000-04-24
2
621 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
Comment Utility
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
Comment Utility

 Thanks for your answer.
0

Featured Post

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

This is to be the first in a series of articles demonstrating the development of a complete windows based application using the MFC classes.  I’ll try to keep each article focused on one (or a couple) of the tasks that one may meet.   Introductio…
If you use Adobe Reader X it is possible you can't open OLE PDF documents in the standard. The reason is the 'save box mode' in adobe reader X. Many people think the protected Mode of adobe reader x is only to stop the write access. But this fe…
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.
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…

762 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

Need Help in Real-Time?

Connect with top rated Experts

6 Experts available now in Live!

Get 1:1 Help Now