Click to Rate and Give Feedback
MSDN
MSDN Library
Shell
Shell Reference
 TB_ADDBITMAP

  Switch on low bandwidth view
TB_ADDBITMAP
Windows Mobile SupportedWindows Embedded CE Supported
8/28/2008

This message adds one or more images to the list of button images available for a toolbar.


TB_ADDBITMAP wParam = (WPARAM) nButtons; 
    lParam = (LPARAM)(LPTBADDBITMAP) lptbab; 
wParam

Not used.

nButtons

Number of button images in the bitmap. If lptbab specifies a system-defined bitmap, this parameter is ignored.

lptbab

Long pointer to a TBADDBITMAP structure that contains the identifier of a bitmap resource and the handle to the module instance with the executable file that contains the bitmap resource.

The index of the first new image indicates success. –1 indicates failure.

The bitmap specified in the lptbab parameter can contain multiple images. The number of images in the bitmap must be specified in the nButtons parameter.

The bitmap width should be nButtons multiplied by the image width, and the bitmap height should be equal to the image height.

The default image width is 16 pixels and the default image height is 15 pixels. The default image width and height can be changed using TB_SETBITMAPSIZE. If the size of the bitmap is not the default or if you have multiple images in a bitmap, you must call TB_SETBITMAPSIZE to change the default size settings.

Headercommctrl.h
Windows Embedded CEWindows CE 1.0 and later
Windows MobileWindows Mobile Version 5.0 and later
Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker