Discussion:
SysListView32 LVS_ICON LVS_OWNERDATA and a search-by-keyboard problem
(too old to reply)
R.Wieser
2021-06-06 16:19:39 UTC
Permalink
Hello all,

I've got a listview in LVS_ICON and LVS_OWNERDATA mode. The problem is
that grabbing all "icons" in view and actually displaying them costs a bit
of time, which interrupts the search-by-keyboard capabilities of the
listview. In other words:

When I type the first character the LVN_ODFINDITEM notification is send
*with that single character*, causing the listview to update itself (taking
some time) - and than accept what *should* be the the next character as a
first character again.

IOW, I can only search for the first character of the "filename". :-(

The/my question:
Is there a build-in method to hold-off the LVN_ODFINDITEM notification
message until no key has been pressed for some time (allowing it to gather
more than one typed character) ?

Regards,
Rudy Wieser
R.Wieser
2021-06-06 16:51:02 UTC
Permalink
Post by R.Wieser
Is there a build-in method to hold-off the LVN_ODFINDITEM notification
message until no key has been pressed for some time (allowing it to gather
more than one typed character) ?
.. or perhaps increase the time-out of the involved listview so its a bit
longer than the time it takes to redraw its contents (so it will append the
second+ chars to the first) ...

Regards,
Rudy Wieser

Loading...