CComboBox::SetDroppedWidth

This method sets the minimum allowable width, in pixels, of the list box of a combo box. This method only applies to combo boxes with the CBS_DROPDOWN or CBS_DROPDOWNLIST style.

By default, the minimum allowable width of the drop-down list box is 0. When the list-box portion of the combo box is displayed, its width is the larger of the minimum allowable width or the combo box width.

At a Glance

Header file: Afxwin.h
Platforms: H/PC 2.0, Palm-size PC, H/PC Pro
Windows CE versions: 1.0 and later
Complete documentation: Visual C++ documentation

Syntax

int SetDroppedWidth( UINT nWidth );

See Also

CComboBox::GetDroppedWidth