An application sends the LBN_SELCANCEL notification message when the user cancels the selection in a list box. The parent window of the list box receives this notification message through the WM_COMMAND message.
LBN_SELCANCEL
idListBox = (int) LOWORD(wParam); // identifier of list box
hwndListBox = (HWND) lParam; // handle to list box
This notification message applies only to list boxes of the LBS_NOTIFY style.
Windows NT: Requires version 3.1 or later.
Windows: Requires Windows 95 or later.
Windows CE: Requires version 1.0 or later.
Header: Declared in winuser.h.
List Boxes Overview, List Box Messages, LB_SETCURSEL, LBN_DBLCLK, LBN_SELCHANGE, WM_COMMAND