Creating Images for Toolbar Buttons

Home Page (Add-ins)OverviewHow Do I ... TopicsFAQReference

If you select the Provides a toolbar option while using the Developer Studio Add-in Wizard, the wizard automatically generates images for toolbar buttons. You can use these images as they are, you can alter them in some way, or you can use other images of your choosing.

To create an image for a toolbar button

  1. In ResourceView, expand the project's resources, and then expand Bitmap.

  2. Use the default bitmaps in IDR_TOOLBAR_LARGE and IDR_TOOLBAR_MEDIUM.

    -or-

    Use the Image editor to alter the default bitmaps.

    -or-

    Use the Image editor to append new bitmaps to IDR_TOOLBAR_LARGE and IDR_TOOLBAR_MEDIUM.

  3. If you append new bitmaps to IDR_TOOLBAR_LARGE and IDR_TOOLBAR_MEDIUM, note the offset of the new bitmaps, and then update the bitmap offsets in the corresponding AddCommand calls.

    For example, the first image in the default bitmap has an offset of 0, and the second image in the default bitmap has an offset of 1. If you append a new image to the default bitmap, the new image has an offset of 2. To use the new image, change the bitmap offset in the appropriate AddCommand call from 0 to 2.