Compartilhar via


CToolBarCtrl::SetButtonWidth

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

BOOL SetButtonWidth( 
   int cxMin, 
   int cxMax  
);

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.

Return Value

Nonzero if successful; otherwise 0.

Remarks

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

Requirements

Header: afxcmn.h

See Also

Reference

CToolBarCtrl Class

Hierarchy Chart

CToolBarCtrl::SetButtonInfo