CBN_SELCHANGE
A version of this page is also available for
4/8/2010
This message is sent when the selection in the list box of a combo box is about to be changed as a result of the user either clicking in the list box or changing the selection by using the arrow keys. The parent window of the combo box receives this message through the WM_COMMAND message.
Syntax
CBN_SELCHANGE idComboBox = (int)LOWORD(wParam);
hwndComboBox = (HWND) lParam;
Parameters
- idComboBox
Identifier of the combo box.
- hwndComboBox
Handle to the combo box.
Return Value
None.
Remarks
To get the index of the current selection, send the CB_GETCURSEL message to the control.
The CBN_SELCHANGE message is not sent when the current selection is set using the CB_SETCURSEL message.
Requirements
Header | winuser.h |
Windows Embedded CE | Windows CE 1.0 and later |
Windows Mobile | Windows Mobile Version 5.0 and later |
See Also
Reference
Combo Boxes Messages
SendMessage
CBN_DBLCLK
CB_SETCURSEL
WM_COMMAND