https://bugs.winehq.org/show_bug.cgi?id=38566
Bug ID: 38566 Summary: LB_SETSEL message should set caret as well Product: Wine Version: unspecified Hardware: x86 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: comctl32 Assignee: wine-bugs@winehq.org Reporter: q.winehq@rsn-tech.co.uk Distribution: ---
When you send the LB_SETSEL message to a multi-selection list box in Windows, it also sets the focus to the appropriate item and scrolls it into view if necessary. In Wine, this secondary function appears not to happen and an additional LB_SETCARETINDEX message is needed to duplicate the full Windows functionality.
I don't know if this happens in all circumstances, but it fixed a long-standing problem in a complex application where a list box would not automatically scroll as it did in Windows.