CToolBarCtrl::SetButtonWidth

BOOL SetButtonWidth( int cxMin, int cxMax );

Return Value

Nonzero if successful; otherwise zero.

Parameters

cxMin

Minimum button width, in pixels. Toolbar buttons will never be narrower than this value.

cxMax

Maximum button width, in pixels. If button text is too wide, the control displays it with ellipsis points.

Remarks

This member function implements the behavior of the Win32 message TB_SETBUTTONWIDTH, as described in the Platform SDK.

CToolBarCtrl OverviewClass MembersHierarchy Chart

See Also   CToolBarCtrl::SetButtonInfo