Hi Neil
May I just add some supplementary context to this conversation because I'm a related party and it seems useful information for everyone to add here:
Here's what I think Stefans patch is about:
I submitted a patch for BowPad yesterday that lets the user use the mouse wheel to scroll the tab bar left and right. In my patch, I used a mouse hook to capture wheel events from any window that has the focus (in this case that window is usually scintilla) and then redirect the wheel events to a handler in the tab bar instead *iff* the mouse is over the tab bar at the time of the event.
This allows the tab bar to handle wheel events when it doesn't have the focus and do the tab scrolling *no matter what window has the focus, be it scintilla or any window*. I'm not aware of any significant downside or problem with my patch or the solution.
However, Stefan's patch - and I am guessing this is his reason for suggesting it - is that his patch would allow him to not use a mouse hook anymore and simply just have scintilla forward the message to bowpad and bowpad forward it to it's tab bar thus avoid a mouse hook altogether.
I did consider Stefan's solution myself but decided against it because conceptually at least Scintilla may not be the only window with the focus. For example, if the focus were in some other window (e.g. an edit control on the ribbon say, but I haven't tried this) then the tab bar would appear to not scroll any more.
So with this background what I'm explaining here is a) the use case I believe Stefan has in mind - if that helps you decide on the merit of his patch - but also b) I'm also suggesting that for Stefan's use case his patch to you is arguably not necessary or even the right/best patch for BowPad, though it might work enough to be acceptable.
But the situation is arguable and Stefan's solution may work well enough that there is some reason to prefer his solution. But I just don't see that yet.
But even if my patch turns out to be the better solution for bowpad, it's not to say Stefan's patch is not also a worthy/handy addition to Scintilla anyway. i.e. It might well make sense for Scintilla to get Stefans patch AND bowpad to not use it as it turns out anyway, for instance.
Anyway, I hope this additional information helps you guys pick or evolve the best solution for both Scintilla and Bowpad.
Thanks
GM