After drawing to the screen dc, with say a pen, how do you then refresh the screen to get rid of what you just drew?

The only thing I can do right now is to move a window around to wipe out the drawing. But there has got to be a way to refresh the screen.

Someone suggested the RedrawWindow API but unfortunately, this does not work because the screen is not a window and therefore does not have a handle. Although you can pass a Null handle in to RedraWindow, that repaints the desktop, which is not the screen.

So I guess the real question is, after drawing to a dc, how do you refresh it without resorting to repainting the window?

Any help would be appreciated..

Dan