On mouse down in thumb, issue SB_THUMBTRACK with current position. On mouse up in thumb, issue SB_THUMBPOSITION followed by SB_ENDSCROLL.