What triggers LBN_SELCANCEL?

457 Views Asked by At

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?

1

There are 1 best solutions below

0
On

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.