CToolbar.SetButtonWidthmethod
Sets the minimum and maximum button widths in the toolbar control.
Syntax
FUNCTION SetButtonWidth (BYVAL hToolbar AS HWND, BYVAL cxMin AS SHORT, BYVAL cxMax AS SHORT) AS BOOLEAN
Parameters
| Name | Description | |
|---|---|---|
hToolbar | Handle to the toolbar control. | |
cxMin | The minimum button width, in pixels. Toolbar buttons will never be narrower than this value. | |
cxMax | The 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