Click to See Complete Forum and Search --> : How to avoid this wrong


Wolf
May 23rd, 1999, 08:22 PM
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.
xjtuandrew@hotmail.com

Tianzh
May 23rd, 1999, 11:47 PM
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.

Wolf
May 24th, 1999, 12:22 AM
In fact, my scroll view includes only one page.
Do you have other advice?

Jason Teagle
May 24th, 1999, 02:29 AM
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.