Contents Index Topic Contents | ||
Previous Topic: Toolbar Control Messages Next Topic: TB_ADDBUTTONS |
TB_ADDBITMAP
TB_ADDBITMAP wParam = (WPARAM) nButtons; lParam = (LPARAM) (LPTBADDBITMAP) lptbab;Adds one or more images to the list of button images available for a toolbar.
- Returns the index of the first new image if successful, or -1 otherwise.
- nButtons
- Number of button images in the bitmap. If lptbab specifies a system-defined bitmap, this parameter is ignored.
- lptbab
- Address of 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.
If the toolbar was created using the CreateWindowEx function, you must send the TB_BUTTONSTRUCTSIZE message to the toolbar before sending TB_ADDBITMAP.
Top of Page
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.