CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Aug 1999
    Posts
    171

    quick CScrollView question . . .

    I added a view to my app (derived from CScrollView). SetScrollSizes has been called in OnInitialUpdate & I have added code to OnDraw. So why doesn't the view have scroll bars. Something else I need to do? Cannot view all the data (?) Thanks anyone.


  2. #2
    Join Date
    May 1999
    Location
    ALABAMA, USA
    Posts
    9,917

    Re: quick CScrollView question . . .

    It depends how did you use SetScrollSizes.
    Meaning what mapping mode did you use and how did you calculate a total size of the view, that should be equal to the size of the view below which you want to scroll bars to appear.
    In MM_TEXT mapping mode size is in screen pixels.
    You may consider to use SetScaleToFitSize member to adjust the size.


    There are only 10 types of people in the world:
    Those who understand binary and those who do not.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured