Toolbar Bitmaps
Each button in a toolbar can include a bitmapped image. A toolbar stores the
information that it needs to draw the images in an internal list. When you call
the
CreateToolbarEx function, you specify a monochrome or color bitmap that contains the initial
images, and the toolbar adds the information to the internal list of images.
You can add additional images later by using the
TB_ADDBITMAP message.
Each image has a zero-based index. The first image added to the internal list
has an index of zero, the second image has an index of one, and so on.
TB_ADDBITMAP adds images to the end of the list and returns the index of the first new
image that it added. You use an image's index to associate the image with a
button.
Windows assumes that all of a toolbar's bitmapped images are the same size.
You specify the size when you create the toolbar by using
CreateToolbarEx. If you use the
CreateWindowEx function to create a toolbar, the size of the images is set to the default
dimensions of 16 by 15 pixels. You can use the
TB_SETBITMAPSIZE message to change the dimensions of the bitmapped images, but you must do so
before adding any images to the internal list of images.
- Software for developers
-
Delphi Components
.Net Components
Software for Android Developers
- More information resources
-
MegaDetailed.Net
Unix Manual Pages
Delphi Examples