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.
void SetHorizontalExtent( UINT nExtent );
Header File | Afxwin.h |
Platforms | |
Versions | 1.0 and later |
Complete documentation | Visual C++ documentation |
CComboBox Overview, CComboBox Member Functions, Control Classes, CComboBox::GetHorizontalExtent