In my Research project, i'm trying to draw a bitmap and scrolling it with the mouse.
I don't have problem to print a bitmap on a screen.
But my problem is to scroll it, I tried the ScrollDC function and ScrollWindow, but nothing happen !
I would like to know how to scroll a bitmap that are printed on the screen ? ( I'm trying to avoid the function "BitBlt" because I can see the refresh )
My first test was :
detecting the new position of the mouse with "onMouseMove" and calling invalidate function.
And in the function OnPaint() I added the scrollDC function, but I found that the screen is erased by calling the function invalidate. So my first test failed.
My second test was :
on the function "onMouseMove", I called the function ScrollWindow(2,2,NULL,NULL);
but nothing happen
My third test was :
on the function "onMouseMove", I called the function :
( clientrectscroll and clientrectclip are at the screen size )
but nothing happen!
I really don't understand why!
Last informations : I'm printing the bitmap in the derived class of CWnd.
I don't know if someone can help me, but i'm lost :'(