I created a formview with nested controls. My problem is setting the correct values for vertical scroll size so that I can scroll thru the complete range of the view. At the moment, my code cannot scroll to the bottom of the view.
Notice in the left portion of the attached screen capture that the scroll thumb occupies almost the entire vertical scrollbar which limits the range to scroll.
I found out that if I increased the cy member of CSize, the scrollbar thumb is smaller and it now allows me to scroll down to the bottom of the formview.
See right portion of the screen capture.
My question is what do I need to do to set the correct value for CSize?
I assume I will also need the same code to change the scroll size when the user resizes the frame window in the call to OnSize.
Thank you for your assistance.
Last edited by robertzp; May 25th, 2017 at 11:37 PM.
Reason: sorry will repost correction
It depends on how it is supposed the size is needed to be set. I assume calling the same code in OnSize() is a good idea. However, if I'm not mistaken, when manually adding a scrollbar control using wizard, it automatically fits to the parent window.
* The Best Reasons to Target Windows 8
Learn some of the best reasons why you should seriously consider bringing your Android mobile development expertise to bear on the Windows 8 platform.