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

    How to avoid this wrong

    Hello everyone:
    In my project, I draw several curves and output some data in view. but when I scroll the view,somethine wrong about GDI.exe happens. How to avoid it?
    When preview print the view, something wrong also happens and if I ignore the wrong, I can preview the print. But it does not suppor scroll.
    Thanks a lot.
    [email protected]


  2. #2
    Join Date
    May 1999
    Posts
    12

    Re: How to avoid this wrong

    I think your scroll view will be too large,

    the MFC scrollview's length support less then

    32,677, please debug into the error or see the

    online help.


  3. #3
    Join Date
    May 1999
    Posts
    6

    Re: How to avoid this wrong

    In fact, my scroll view includes only one page.
    Do you have other advice?


  4. #4
    Join Date
    May 1999
    Location
    Farnborough, Hants, England
    Posts
    710

    Re: How to avoid this wrong

    Are you calling SetScrollSizes() to set the page size? If so, what parameters are you passing? This does not NEED to be done, as the default CScrollView's OnInitialUpdate() sets a default size.

    Perhaps you could show us the code in the OnDraw() method, that might give us something to look at.


    --
    Jason Teagle
    [email protected]

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