MFC
Expand Minimize
This topic has not yet been rated - Rate this topic

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.

Nonzero if successful; otherwise 0.

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

Did you find this helpful?
(1500 characters remaining)

Community Additions

ADD
© 2013 Microsoft. All rights reserved.