Share via


New Toolbar Resource Dialog Box

 

The latest version of this topic can be found at New Toolbar Resource Dialog Box.

The New Toolbar Resource dialog box allows you to specify the width and height of the buttons you are adding to a toolbar resource. The default is 16 × 15 pixels.

A bitmap that is used to create a toolbar has a maximum width of 2048. So if you set the Button Width to 512, you can only have four buttons. If you set the width to 513, you can only have three buttons.

Button Width
Provides a space for you to enter the width for the toolbar buttons you are converting from a bitmap resource to a toolbar resource. The images are cropped to the width and height specified, and the colors are adjusted to use standard toolbar colors (16 colors).

Button Height
Provides a space for you to enter the height for the toolbar buttons you are converting from a bitmap resource to a toolbar resource. The images are cropped to the width and height specified, and the colors are adjusted to use standard toolbar colors (16 colors).

For information on adding resources to managed projects, please see Resources in Applications in the .NET Framework Developer's Guide. For information on manually adding resource files to managed projects, accessing resources, displaying static resources, and assigning resources strings to properties, see Walkthrough: Localizing Windows Forms and Walkthrough: Using Resources for Localization with ASP.NET.

Requirements

MFC or ATL

See Also

Toolbar Button Properties
Converting Bitmaps to Toolbars
Toolbar Editor