Yes, I understand the trade-offs between the standard control and the
extended control w/wo OwnerDraw, but just wanted to add one more point...
ComboBoxEx have same problem, it triggers last
selection when one tries to ignore.
selection when one tries to ignore.
problem exist. But using the new messages via WM_NOTIFY, the %CBEN_ENDEDIT
will allow you to look at the NMCBEENDEDIT structure member .iWhy for
either of the following values;
CBENF_DROPDOWN
CBENF_ESCAPE
CBENF_KILLFOCUS
CBENF_RETURN
and you can return false to allow the control to display the selected item or
return true to abort the edit selection in the case Esc/Killfocus.
Regards,
Jules

Leave a comment: