Reputation: 51
I'm trying to understand the listbox notification LBN_SELCANCEL. MSDN says "Notifies the application that the user has canceled the selection in a list box." OK, but how exactly does a user "cancel the notification"? I've got LBS_NOTIFY set, and I've tried selecting another item, clicking outside the listbox, clicking another window, and none of these trigger LBN_SELCANCEL.
Anyone know what specifically triggers this notification?
Upvotes: 3
Views: 470
Reputation: 402
I believe LBN_SELCANCEL only applies to ComboBox controls because they also use lists. It should be called when you open the drop down hover over an element then press ESC.
Upvotes: 1