Changing button bitmaps

 

You can change which button bitmap images are associated with a specific command.

To create new button images:

1. Design new button images. You can design small, medium, and large color and bilevel images.

2. Place the buttons images in an external resource DLL.

3. Register the resource DLL using LoadResourceLibrary.

4. To associate all created bitmaps with a command (external or internal), use SetCommandBitmapIDs. To leave any bitmaps unchanged, use a value of -1 as the parameter.

· To associate one bitmap at a time with a command, use the SetCommandBitmapID transaction.

The new image or images are now associated with that command.

See also