Solved

delete button from a toolbar in resource editor

Posted on 2006-10-27
5
253 Views
Last Modified: 2013-11-20
visual studio 2005

Can someone please tell me how to delete a toolbar button in the resource editor? I have 5 toolbar buttons that I'm actually using, but I accidentally added a few extra that aren't being used. When I right click the button. and choose 'delete', nothing happens. What's excellent is if I try 'delete' on the last button space, it actually adds an additional button space.

Please help, my misery is unprecedented.
0
Comment
Question by:DJ_AM_Juicebox
  • 2
  • 2
5 Comments
 
LVL 22

Expert Comment

by:mahesh1402
ID: 17819609
You may left click  on button of toolbar (select)  and drag that button outside toolbar area...just select button and drag that outside by holding left click.

-MAHESH
0
 
LVL 4

Expert Comment

by:bdunz19
ID: 17819627
What I do to solve this is go to the solution editor, then find my project .rc file. Right click the file and select "View code". Then scroll through the file untill you see the resource id of your tool bar and a type: TOOLBAR. It will look like this:

IDR_MAINFRAME TOOLBAR  16, 15
BEGIN
    BUTTON      ID_FILE_NEW
    SEPARATOR
    BUTTON      ID_EDIT_CUT
    BUTTON      ID_EDIT_COPY
    BUTTON      ID_EDIT_PASTE
    SEPARATOR
    BUTTON      ID_APP_ABOUT
    BUTTON      ID_123412
END

Where BUTTON ID_123412 is the unwanted button at the end. Just delete     BUTTON      ID_123412 from this code and save your resource file. Then when you open the toolbar from the resource editor, you will see no more unwanted button!

Good luck,
Brandon
0
 
LVL 22

Accepted Solution

by:
mahesh1402 earned 500 total points
ID: 17819640
To delete a toolbar button : you just need to :
Select the toolbar button and drag it off the toolbar.

Look here : http://msdn2.microsoft.com/en-us/library/24x74c03.aspx <========

-MAHESH

0
 
LVL 4

Expert Comment

by:bdunz19
ID: 17819646
Mahesh,
Your way is much easier than mine. I learned something new, thanks!
0
 

Author Comment

by:DJ_AM_Juicebox
ID: 17819683
so bizarre! Thanks.
0

Featured Post

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

Here is how to use MFC's automatic Radio Button handling in your dialog boxes and forms.  Beginner programmers usually start with a OnClick handler for each radio button and that's just not the right way to go.  MFC has a very cool system for handli…
Introduction: Dialogs (1) modal - maintaining the database. Continuing from the ninth article about sudoku.   You might have heard of modal and modeless dialogs.  Here with this Sudoku application will we use one of each type: a modal dialog …
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 demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

757 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

17 Experts available now in Live!

Get 1:1 Help Now