CBN_SELCHANGE notification code

Sent when the user changes the current selection in the list box of a combo box. The user can change the selection by clicking in the list box or by using the arrow keys. The parent window of the combo box receives this notification code in the form of a WM_COMMAND message.

CBN_SELCHANGE

    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

To get the index of the current selection, send the CB_GETCURSEL message to the control.

The CBN_SELCHANGE notification code is not sent when the current selection is set using the CB_SETCURSEL message.

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_CLOSEUP

CBN_DBLCLK

CB_GETCURSEL

CB_SETCURSEL

Other Resources

HIWORD

LOWORD

WM_COMMAND