Link to home
Start Free TrialLog in
Avatar of krpadman
krpadman

asked on

Tool Bar Button

How to put one button in the tool bar to be in right top
corner( like ie avi control in IE )?
Avatar of majorjohn
majorjohn

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.
Avatar of krpadman

ASKER

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?
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.
Can you give me some code to explain your suggestion.
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.

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

This is creating another tool bar, But I don't want that. I want to add that button
in my existing tool bar.
ASKER CERTIFIED SOLUTION
Avatar of shaig
shaig
Flag of Afghanistan image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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 ).