With default light theme UXTHEME_ScrollBarDraw() takes ~2.3ms here with the most slow part being TransparentBlt used multiple time. In fact, none of the theme's bitmap actually have the color key and are not transparent anyway. Utilizing this fact and avoiding TransparentBlt in such cases reduces the time of UXTHEME_ScrollBarDraw to 0.8ms, which is probably also not all that great but is a severe improvement with a simple change.
Spotted while looking at Pharaoh Rebirth+ taking a long time to load into the game, while all the time spent in processing LB_ADDSTRING in listbox control for updating scroll bar.