Sign in to follow this  
etsuja

windows scrollbar problem

Recommended Posts

etsuja    100
I having trouble getting scrollbars to work right. So far I just have it set up so you can scroll vertically when you push either the top vertical scroll button or the bottom one it scrolls. My problem is that when the text scrolls off the window it's gone when you scroll back to it. Anyone know how I can fix this?

Share this post


Link to post
Share on other sites
Anon Mike    1098
You need to redraw the portion of the window that gets opened up when you scroll. If this is a straight Win32 app then you are presumably using ScrollWindow to do you scrolling. ScrollWindow will automatically invalidate the portion of the window that needs to be redrawn and you will eventually get a new WM_PAINT message for that area.

If you aren't using ScrollWindow you need to handle the invalidate&update logic yourself.

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