Jump to content
  • Advertisement
Sign in to follow this  
wforl

SetScrollInfo calls WM_SIZE

This topic is 2789 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

Why does calling SetScrollInfo() end up issueing a WM_SIZE event?

It only seems to happen when when SIF_RANGE is used.

Share this post


Link to post
Share on other sites
Advertisement
The scroller changes size depending on the range of the scroller and how much of the range is currently displayed.

Share this post


Link to post
Share on other sites
I have a some other logic that I use on a WM_SIZE event, specifically the resizing of child windows. I dont want to do that when only the scrollbar has chnaged its range as that has no affect on the childwindows. Is there a way I can determine whether the message was created due to a range change?

Share this post


Link to post
Share on other sites
Quote:
Is there a way I can determine whether the message was created due to a range change?

Not that I know of, not without subclassing the scrollbar window.

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.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!