CComboBox::SetHorizontalExtent

This member function sets the width, in pixels, by which the list-box portion of the combo box can be scrolled horizontally. If the width of the list box is smaller than this value, the horizontal scroll bar will horizontally scroll items in the list box. If the width of the list box is equal to or greater than this value, the horizontal scroll bar is hidden or, if the combo box has the CBS_DISABLENOSCROLL style, disabled.

Syntax

void SetHorizontalExtent( UINT nExtent );

At a Glance

Header File Afxwin.h
Platforms
Versions 1.0 and later
Complete documentation Visual C++ documentation

See Also

CComboBox Overview, CComboBox Member Functions, Control Classes, CComboBox::GetHorizontalExtent