Skip to content

Latest commit

 

History

History
64 lines (40 loc) · 1.6 KB

tb-setbuttonwidth.md

File metadata and controls

64 lines (40 loc) · 1.6 KB
title description ms.assetid keywords topic_type api_name api_location api_type ms.topic ms.date
TB_SETBUTTONWIDTH message (Commctrl.h)
Sets the minimum and maximum button widths in the toolbar control.
3311216a-e0b2-48bb-bad7-0a04185573cf
TB_SETBUTTONWIDTH message Windows Controls
apiref
TB_SETBUTTONWIDTH
Commctrl.h
HeaderDef
reference
05/31/2018

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