CBN_CLOSEUP notification code

Sent when the list box of a combo box has been closed. The parent window of the combo box receives this notification code through the WM_COMMAND message.

CBN_CLOSEUP

    WPARAM wParam;
    LPARAM lParam; 

Parameters

wParam

The LOWORD contains the control identifier of the combo box. The HIWORD specifies the notification code.

lParam

Handle to the combo box.

Remarks

If the user changed the current selection, the combo box also sends the CBN_SELCHANGE notification code when the drop-down list closes. In general, you cannot predict the order in which notification codes will be sent. In particular, a CBN_SELCHANGE notification code may occur either before or after a CBN_CLOSEUP notification code.

To execute a specific process each time the user selects a list item, you can handle either the CBN_SELCHANGE or CBN_CLOSEUP notification code. Typically, you would wait for the CBN_CLOSEUP notification code before processing a change in the current selection. This can be particularly important if a significant amount of processing is required.

This notification code is not sent to a combo box that has the CBS_SIMPLE style.

Requirements

Requirement Value
Minimum supported client
Windows Vista [desktop apps only]
Minimum supported server
Windows Server 2003 [desktop apps only]
Header
Winuser.h (include Windows.h)

See also

Reference

CBN_DROPDOWN

CBN_SELCHANGE

Other Resources

HIWORD

LOWORD

WM_COMMAND