Solved

Tool Bar Button

Posted on 1998-11-19
9
183 Views
Last Modified: 2013-11-20
How to put one button in the tool bar to be in right top
corner( like ie avi control in IE )?
0
Comment
Question by:krpadman
[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
  • 3
  • 2
  • 2
  • +1
9 Comments
 
LVL 1

Expert Comment

by:majorjohn
ID: 1324953
I don't know how you are making the toolbar. If you are making it by recource editor then in resource editor toolbar option in the bitmap delete all existing buttons with blank format and insert your desired one by adjust it as that your AVI button appears at the right of the toolbar.
0
 

Author Comment

by:krpadman
ID: 1324954
I'm creating it using resource editor only, but we cannot place buttons whereever we want.
Apart from that, that button should be there in the right top corner even if the window
is resized. What we can do for that?
0
 
LVL 2

Expert Comment

by:wyy_cq
ID: 1324955
regard the toolbar window as a normal window,
you can add a button as a child window,
when the toolbar size change you can move your button to a proper position.
0
Industry Leaders: 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!

 

Author Comment

by:krpadman
ID: 1324956
Can you give me some code to explain your suggestion.
0
 
LVL 2

Expert Comment

by:wyy_cq
ID: 1324957
please don't ask for source code.
when you program you need know the method.

and more.
Windows System as the name, all the GUI control you see is window .
you can do anything with them if you have the window's handle or CWnd* (in MFC).
you can treat the toolbar as a common window.

0
 
LVL 1

Expert Comment

by:majorjohn
ID: 1324958
You are making it with resource editor so make a Toolbar bitmap with only one button and with dockable property TRUE and RIGHT ALIGNED.

0
 

Author Comment

by:krpadman
ID: 1324959
This is creating another tool bar, But I don't want that. I want to add that button
in my existing tool bar.
0
 
LVL 3

Accepted Solution

by:
shaig earned 100 total points
ID: 1324960
Why not add empty (and disabled) buttons to your toolbar?
(empty: The buttons will have no text)
0
 
LVL 3

Expert Comment

by:shaig
ID: 1324961
By the way, the IE avi is not on the same toolbar.
(You can drag n' drop some other toolbar and place it between the avi and the toolbar to it's left - maybe you just want the toolbar who is on the left of the avi to resize itself so it fills the area between it's current position and the avi ).
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

Introduction: Load and Save to file, Document-View interaction inside the SDI. Continuing from the second article about sudoku.   Open the project in visual studio. From the class view select CSudokuDoc and double click to open the header …
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 a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

740 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