Partager via


CBN_SELENDCANCEL (Compact 2013)

3/28/2014

This message is sent when the user selects an item, but then selects another control or closes the dialog box. It indicates the user's initial selection is to be ignored. The parent window of the combo box receives this message through the WM_COMMAND message.

If the WS_EX_NOPARENTNOTIFY extended window style is specified for the combo box, the CBN_SELENDCANCEL message is not sent.

Syntax

CBN_SELENDCANCEL 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 WS_EX_NOPARENTNOTIFY extended window style is specified for the combo box, the CBN_SELENDCANCEL message is not sent.

Requirements

Header

winuser.h

See Also

Reference

Combo Box Messages
SendMessage
CBN_SELENDOK
WM_COMMAND