Important:
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.
A version of this page is also available for
4/8/2010

This message specifies the size of the TBBUTTONstructure.

Syntax

TB_BUTTONSTRUCTSIZE 
wParam = (WPARAM) 
cb; 

lParam = 0; 

Parameters

cb

Size, in bytes, of the TBBUTTONstructure.

lParam

Not used.

Return Value

None.

Remarks

The system uses the size to determine which version of the common control dynamic-link library (DLL) is being used.

If an application uses the CreateWindowExfunction to create the toolbar, the application must send this message to the toolbar before sending the TB_ADDBUTTONSor TB_INSERTBUTTONmessage. The CreateToolbarExfunction automatically sends TB_BUTTONSTRUCTSIZE, and the size of the TBBUTTONstructure is a parameter of the function.

Requirements

Header commctrl.h
Windows Embedded CE Windows CE 1.0 and later
Windows Mobile Windows Mobile Version 5.0 and later

See Also