It seems (confirm this if you can Jez) that the "issues" probably only occur for SB_THUMBPOSITION and SB_THUMBTRACK operations, as these are the only that use the position value which is potentially from the WM_HSCROLL or WM_VSCROLL message.

To allow easier "plumbing", and for the sake of efficiency, I'm adding a special value to the "position" parameter, of -1, which means "use the value from GetScrollInfo nTrackPos instead of the passed in value. So user code that directly calls Scroll($hv,SB_THUMBPOSITION,$pos) without receiving a message will still work, but user code that says

I've just tested this and works great in practise. Nice.

Cheers,

jez.

Reply via email to