Help Center

CToolbar.SetButtonWidthmethod

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

WindowsmethodCToolbar.incdocumented

Syntax

FUNCTION SetButtonWidth (BYVAL hToolbar AS HWND, BYVAL cxMin AS SHORT, BYVAL cxMax AS SHORT) AS BOOLEAN

Parameters

NameDescription
hToolbarHandle to the toolbar control.
cxMinThe minimum button width, in pixels. Toolbar buttons will never be narrower than this value.
cxMaxThe maximum button width, in pixels. If button text is too wide, the control displays it with ellipsis points.

Return value

Returns TRUE if successful, or FALSE otherwise.

Description

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

Reference

  • Include file CToolbar.inc
  • Defined in AfxNova/CToolbar.inc:1063
  • Documented in Windows/WIndows Controls/CToolbar Class.md
  • Topic: CToolbar Class