On 30.06.2015 12:18, Hao Peng wrote:
Hi, Nikolay Sivov
Thanks for your review. I have tested so many times and I'm pretty sure that if user double click on the blank area of the list, we will always receive a CBN_CLICK message. So I have to use LB_ITEMFROMPOINT to know whether a use really clicked on a list item, Otherwise it's wacky that user click on the blank area and the edit window pops out.
Sounds like a Listbox bug, I can confirm that ControlSpy on wine shows LBN_DBLCLK notification when double clicking on blank area. By the way you should use LBN_DBLCLK instead of CBN_DBLCLK.