TB_SETBUTTONSIZE message
Sets the size of buttons on a toolbar.
Parameters
- wParam
-
Must be zero.
- lParam
-
The LOWORD specifies the width, in pixels, of the buttons. The HIWORD specifies the height, in pixels, of the buttons.
Return value
Returns TRUE if successful, or FALSE otherwise.
Remarks
TB_SETBUTTONSIZE should generally be called after adding buttons.
Use TB_SETBUTTONWIDTH to set the maximum and minimum allowed widths for buttons before they are added. Use TB_SETBUTTONSIZE to set the actual size of buttons.
Examples
The following example code sets the width of buttons to 80 pixels and the height to 30 pixels.
// hWndToolbar is a handle to the toolbar window. SendMessage(hWndToolbar, TB_SETBUTTONSIZE, 0, MAKELPARAM(80, 30);
Requirements
|
Minimum supported client | Windows 2000 Professional [desktop apps only] |
|---|---|
|
Minimum supported server | Windows 2000 Server [desktop apps only] |
|
Header |
|
Send comments about this topic to Microsoft
Build date: 10/27/2012