Partager via


CB_SETDROPPEDWIDTH

A version of this page is also available for

Windows Embedded CE 6.0 R3

4/8/2010

This message is sent by an application to set the maximum allowable width, in pixels, of the list box of a combo box with the CBS_DROPDOWN or CBS_DROPDOWNLIST style.

Syntax

CB_SETDROPPEDWIDTH wParam = (WPARAM) wWidth; 
  lParam = 0;

Parameters

  • wWidth
    Specifies the width of the list box, in pixels.
  • lParam
    Not used.

Return Value

The new width of the list box indicates success. CB_ERR indicates failure.

Remarks

By default, the minimum allowable width of the drop-down list box is 0. The width of the list box is either the minimum allowable width or the combo box width, whichever is larger.

Requirements

Header winuser.h
Windows Embedded CE Windows CE 1.0 and later
Windows Mobile Windows Mobile Version 5.0 and later

See Also

Reference

Combo Boxes Messages
SendMessage
CB_GETDROPPEDWIDTH