On Mon, Nov 19, 2018 at 8:10 PM Nikolay Sivov nsivov@codeweavers.com wrote:
On 11/19/18 6:33 PM, Gabriel Ivăncescu wrote:
I forgot to mention: besides the bug report, a real life use case at least for single-selection listboxes is Wine's own autocomplete implementation in the very near future.
I plan to convert it to use LBS_NODATA (once it's implemented) for a 40% performance gain on large suggestions, so that it is much more manageable on a large enumeration (virtual database fs for instance).
Obviously it has to be implemented first or there's no point at all. (and yes, the "special cases" everywhere needs to remain for single-selection listboxes)
Is this listbox window accessible by some API? If it's visible to application in any way you should check first that it's actually using this style.
Nah it's internal and there's no (public) way to get its HWND. There's APIs to get the selected item and such but those can be easily converted as well. I don't even know if Windows uses a listbox to be honest. So it doesn't matter. :-)