Prev Next

TB_ADDBITMAP Overview  Group

The TB_ADDBITMAP 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; 

 

Parameters

nButtons
Number of button images in the bitmap.
lptbab
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.

Return Values

Returns the index of the first new image if successful or - 1 otherwise.

Remarks

If the toolbar was created by using the CreateWindowEx function, you must send the TB_BUTTONSTRUCTSIZE message to the toolbar before sending TB_ADDBITMAP.

See Also

CreateWindowEx, TBADDBITMAP, TB_BUTTONSTRUCTSIZE