Important:
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.
A version of this page is also available for
4/8/2010

This message is sent when the list box of a combo box has been closed. The parent window of the combo box receives this message through the WM_COMMANDmessage.

In general, you cannot predict the order in which messages will be sent. In particular, a CBN_SELCHANGEmessage may occur either before or after a CBN_CLOSEUP message.

Syntax

CBN_CLOSEUP 
idComboBox = (int)LOWORD(
wParam); 

hwndComboBox = (HWND) 
lParam;

Parameters

idComboBox

Identifier of the combo box.

hwndComboBox

Handle to the combo box.

Return Value

None.

Remarks

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

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

Requirements

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

See Also