Jump to content
Sign in to follow this  

_GUIScrollBars_GetScrollBarRect - inconsistent numbers if no scrollbar shown

Recommended Posts



I'm trying determine the size (width/height) of scrollbars in a control (listview)

Using _GUIScrollBars_GetScrollBarRect works great when scrollbars are shown, but if they are not shown, then the numbers are all over the place, and I can't figure out what they depend on.

For example on one computer it could return [-1, 191700576, -1888, 0] on another computer with font scale in the system set to 125% it's [-1792, 670, 0, 1]

On the computer with 125% font scale when only vertical scrollbar shown, the numbers for horizontal scrollbar return the same as for vertical...wtf!

Maybe there is a better way get dimensions of scrollbars?

Thank you

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this