Jump to content
  • Advertisement
Sign in to follow this  

windows scrollbar problem

This topic is 4384 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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
Advertisement
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
I am using ScrollWindow but it was a problem with where I was drawing the text, I figured it out though.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!