void SetHorizontalExtent( int cxExtent );
Parameters
cxExtent
Specifies the number of pixels by which the list box can be scrolled horizontally.
Remarks
Sets the width, in pixels, by which a list box can be scrolled horizontally. If the size of the list box is smaller than this value, the horizontal scroll bar will horizontally scroll items in the list box. If the list box is as large or larger than this value, the horizontal scroll bar is hidden.
To respond to a call to SetHorizontalExtent, the list box must have been defined with the WS_HSCROLL style.
This member function is not useful for multicolumn list boxes. For multicolumn list boxes, call the SetColumnWidth member function.
CListBox Overview | Class Members | Hierarchy Chart
See Also CListBox::GetHorizontalExtent, CListBox::SetColumnWidth, LB_SETHORIZONTALEXTENT