Forum
Please
Log In
to post a new message or reply to an existing one. If you are not registered, please
register.
NOTE: Some forums may be read-only if you are not currently subscribed to
our technical support services.
Subject |
Author |
Date |
|
Saroj Acharya
|
Apr 7, 2005 - 9:29 AM
|
Hi Customer Support, I know this is very simple question but I am having problem with it. I started my project by adding code in your sample application DrawView. Now, I am almost finished with my project but I want to delete the File New Button from the toolbar and also from the Menu bar. Removing it from the menu bar was easy...However, I am having difficulty removing it from the Toolbar. You have created a 256 color toolbar and I like it and would like to keep it the way it is...but replace the New File (first toolbar in IDR_MAINFRAME) with something else or just remove it. I appreciate your help. Saroj
|
|
Technical Support
|
Apr 7, 2005 - 12:29 PM
|
Unfortunately the Visual Studio IDE does not allow you to edit toolbar resources with more than 16 colors. But you can always edit the resource file and bitmap manually. Here is how to remove the first button from the IDR_MAINFRAME toolbar (command ID_FILE_NEW , project DrawCli): - Open the bitmap file (TOOLBAR_1_16bit.bmp) in an external image editor (e.g. Microsoft Paint), remove the first icon and move all other icons to the left. Save the file.
- Open the project resource file (DRAWCLI.rc) in an external text editor (e.g. Microsoft NotePad), find the "IDR_MAINFRAME TOOLBAR" section and remove the row with command
ID_FILE_NEW . The section should now look like:IDR_MAINFRAME TOOLBAR MOVEABLE PURE 16, 15
BEGIN
BUTTON ID_FILE_OPEN
BUTTON ID_FILE_SAVE
SEPARATOR
BUTTON ID_EDIT_CUT
BUTTON ID_EDIT_COPY
BUTTON ID_EDIT_PASTE
SEPARATOR
BUTTON ID_DRAW_SELECT
BUTTON ID_DRAW_LINE
...
... Save the file.
|
|