TB_SETBUTTONWIDTH message

Sets the minimum and maximum button widths in the toolbar control.

Parameters

wParam

Must be zero.

lParam

The LOWORD specifies the minimum button width, in pixels. Toolbar buttons will never be narrower than this value.

The HIWORD specifies the maximum button width, in pixels. If button text is too wide, the control displays it with ellipsis points.

Return value

Returns nonzero if successful, or zero otherwise.

Remarks

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.

Requirements

Requirement Value
Minimum supported client
Windows Vista [desktop apps only]
Minimum supported server
Windows Server 2003 [desktop apps only]
Header
Commctrl.h