CB_SHOWDROPDOWN

3.0

CB_SHOWDROPDOWN
wParam = (WPARAM) (BOOL) fShow;     /* the show/hide flag     */
lParam = 0L;                        /* not used, must be zero */

An application sends a CB_SHOWDROPDOWN message to show or hide the list box of a combo box that has the CBS_DROPDOWN or CBS_DROPDOWNLIST style.

Parameters

fShow

Value of wParam. Specifies whether the drop-down list box is to be shown or hidden. A value of TRUE shows the list box. A value of FALSE hides the list box.

Return Value

The return value is always nonzero.

Comments

This message has no effect on a combo box created with the CBS_SIMPLE style.

Example

This example shows the list box of a combo box:

SendDlgItemMessage(hdlg, ID_MYCOMBOBOX, CB_SHOWDROPDOWN, TRUE, 0L);