I have now made myself a sample program from a book that uses document/view, and I seen now how scrolling the window works.
My problem is the following. I am creating a picture from a binary file by setting one pixel at a time using setpixel(x,y,RGB_colour).
In this way the function I'm using is making 6000 lines of pixels on the screen. My screen can only display 1200 lines at a time, so I have to be able to scroll downwards for 4800 lines of pixels.
Now, I'm doing all of this in one function, so there is nothing in the ondraw messagehandler. So when I click the mouse on the screen the picture just go away.
Is this because I hav'nt written any code in ondraw?? Do I put my 6000 lines of pixels into memory and use a command like showpixels in ondraw?? (I know there is'nt a command called showpixel in MFC, but what could I use?)
Hope you understand what I'm trying to do her?