Screen Tearing

Viruslav
Hi everybody!

I'm making an app which displays a portion of picture in fullscreen and you
can drag the picture with your finger and it displays a different portion.
I'm using BitBlt function to paint in respond to WM_PAINT message. The
problem is I get image tearing while continuously repainting the screen
(while the user is moving its finger). I think the problem is not syncing
to the LCD screen refresh cycle. Anyone knows a solution?

Thank you.